kitchensync Library API Documentation

profile.h

00001 /*
00002     This file is part of KitchenSync.
00003 
00004     Copyright (c) 2002 Holger Freyther <zecke@handhelds.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019     Boston, MA 02111-1307, USA.
00020 */
00021 #ifndef KITCHENSYNC_PROFILE_H
00022 #define KITCHENSYNC_PROFILE_H
00023 
00024 #include <qmap.h>
00025 #include <qstring.h>
00026 
00027 #include <kapabilities.h>
00028 #include <kdevice.h>
00029 
00030 #include "actionpartservice.h"
00031 
00032 namespace KSync {
00033 
00039 class Profile
00040 {
00041   public:
00042     typedef QMap<QString,  QString> PathMap;
00043     bool operator==( const Profile& );
00044 //        bool operator!=( const Profile& a) { return !(a == *this); };
00045     typedef QValueList<Profile> List;
00046 
00051     Profile();
00052 
00056     Profile( const Profile & );
00057 
00061     ~Profile();
00062 
00066     QString name() const;
00067 
00071     QString uid() const;
00072 
00077     QString pixmap() const;
00078 
00083     bool confirmSync() const;
00084 
00089     bool confirmDelete() const;
00090 
00095     void setName( const QString &name ) ;
00096 
00101     void setUid( const QString &id );
00102 
00107     void setPixmap( const QString &pix);
00108 
00113     ActionPartService::List actionParts() const;
00114 
00119     void setActionParts( const ActionPartService::List &lst );
00120 
00125     QString path( const QString &partName ) const;
00126 
00133     void setPath( const QString &partName, const QString &path );
00134 
00138     void setPaths( const PathMap & );
00139 
00143     PathMap paths() const;
00144 
00148     void setConfirmSync( bool );
00149 
00153     void setConfirmDelete( bool );
00154 
00158     Profile &operator=( const Profile & );
00159 
00160   private:
00161     QString m_name;
00162     QString m_uid;
00163     QString m_pixmap;
00164     ActionPartService::List m_actionPartServices;
00165     PathMap m_map;
00166     bool m_confirmSync   : 1;
00167     bool m_confirmDelete : 1;
00168 };
00169 
00170 }
00171 
00172 #endif
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 2 09:54:00 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003