kitchensync
configgui.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CONFIGGUI_H
00022 #define CONFIGGUI_H
00023
00024 #include <libqopensync/member.h>
00025
00026 #include <tqwidget.h>
00027
00028 class TQBoxLayout;
00029 class KLineEdit;
00030 class TQTextEdit;
00031
00032 class ConfigGui : public TQWidget
00033 {
00034 public:
00035 ConfigGui( const QSync::Member &, TQWidget *parent );
00036
00037 class Factory
00038 {
00039 public:
00040 static ConfigGui *create( const QSync::Member &, TQWidget *parent );
00041 };
00042
00043 void setInstanceName( const TQString & );
00044 TQString instanceName() const;
00045
00046 virtual void load( const TQString &xml ) = 0;
00047 virtual TQString save() const = 0;
00048
00049 QSync::Member member() const { return mMember; }
00050
00051 TQBoxLayout *topLayout() const { return mTopLayout; }
00052
00053 private:
00054 QSync::Member mMember;
00055
00056 TQBoxLayout *mTopLayout;
00057 KLineEdit *mNameEdit;
00058 };
00059
00060 class ConfigGuiXml : public ConfigGui
00061 {
00062 public:
00063 ConfigGuiXml( const QSync::Member &, TQWidget *parent );
00064
00065 void load( const TQString & );
00066 TQString save() const;
00067
00068 private:
00069 TQTextEdit *mTextEdit;
00070 };
00071
00072 #endif
|