kontact
profiledialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KONTACT_PROFILEDIALOG_H
00026 #define KONTACT_PROFILEDIALOG_H
00027
00028 #include <kdialogbase.h>
00029
00030 #include <tqmap.h>
00031 #include <tqstring.h>
00032
00033 class TQListViewItem;
00034
00035 class KListView;
00036 class TQPushButton;
00037
00038 namespace Kontact {
00039
00040 class ProfileDialog : public KDialogBase
00041 {
00042 Q_OBJECT
00043
00044 public:
00045 explicit ProfileDialog( TQWidget* parent = 0, WFlags f = 0 );
00046
00047 private:
00048 enum ListColumn {
00049 NameColumn=0,
00050 DescriptionColumn=1
00051 };
00052
00053 TQString selectedProfile() const;
00054 void updateButtonState();
00055
00056 protected slots:
00057
00058
00059 void slotOk();
00060
00061 private slots:
00062
00063 void loadSelectedProfile();
00064 void saveToSelectedProfile();
00065 void deleteSelectedProfile();
00066 void importProfile();
00067 void exportSelectedProfile();
00068 void addNewProfile();
00069 void listSelectionChanged();
00070 void listItemRenamed( TQListViewItem* item, const TQString& text, int col );
00071
00072 void profileAdded( const TQString& id );
00073 void profileRemoved( const TQString& id );
00074 void profileUpdated( const TQString& id );
00075 void profileLoaded( const TQString& id );
00076
00077 private:
00078 KListView* m_list;
00079 TQPushButton* m_newProfileButton;
00080 TQPushButton* m_deleteProfileButton;
00081 TQPushButton* m_saveProfileButton;
00082 TQPushButton* m_importProfileButton;
00083 TQPushButton* m_exportProfileButton;
00084 TQMap<TQListViewItem*, TQString> m_itemToProfile;
00085 TQMap<TQString, TQListViewItem*> m_profileToItem;
00086 };
00087
00088 }
00089
00090 #endif // KONTACT_PROFILEDIALOG_H
|