ipoddevicedetails.h

00001  /*****************************************************************************
00002  *   Copyright (C) 2004 by Andrew de Quincey                                  *
00003  *   adq@lidskialf.net                                                        *
00004  *   Copyright (C) 2005 by Michael Schulze                                    *
00005  *   mike.s@genion.de                                                         *
00006  *                                                                            *
00007  *  The code contained in this file is free software; you can redistribute    *
00008  *  it and/or modify it under the terms of the GNU Lesser General Public      *
00009  *  License as published by the Free Software Foundation; either version      *
00010  *  2.1 of the License, or (at your option) any later version.                *
00011  *                                                                            *
00012  *  This file is distributed in the hope that it will be useful,              *
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00015  *  Lesser General Public License for more details.                           *
00016  *                                                                            *
00017  *  You should have received a copy of the GNU Lesser General Public          *
00018  *  License along with this code; if not, write to the Free Software          *
00019  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA *
00020  *                                                                            *
00021  *  iTunes and iPod are trademarks of Apple                                   *
00022  *                                                                            *
00023  *  This product is not supported/written/published by Apple!                 *
00024  *****************************************************************************/
00025 
00026 #ifndef IPODDEVICEDETAILS_H
00027 #define IPODDEVICEDETAILS_H
00028 
00029 #include <qstring.h>
00030 #include <qfile.h>
00031 
00036 class IPodDeviceDetails {
00037 public:
00038     IPodDeviceDetails(const QString& filename);
00039     ~IPodDeviceDetails();
00040     bool load();
00041     bool save();
00042     void clear();
00043 
00049     const QString& getName() const;
00050 
00056     const QString& getOwner() const;
00057 
00063     const QString& getComment() const;
00064 
00070     void setName(const QString& name);
00071 
00077     void setOwner(const QString& owner);
00078 
00084     void setComment(const QString& comment);
00085 
00086 private:
00087     QString readDeviceInfoString(QFile& file, int position);
00088 
00089     QString filename;
00090 
00091     QString name;
00092     QString owner;
00093     QString comment;
00094 
00095     bool dirty;
00096 };
00097 
00098 #endif

Generated on Tue Dec 12 16:39:26 2006 for libqtpod.kdevelop by  doxygen 1.5.1