kmail
templatesconfiguration.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <config.h>
00022
00023 #ifndef TEMPLATESCONFIGURATION_H
00024 #define TEMPLATESCONFIGURATION_H
00025
00026 #include "templatesconfiguration_base.h"
00027 #include "templatesinsertcommand.h"
00028
00029 class TemplatesConfiguration : public TemplatesConfigurationBase
00030 {
00031 Q_OBJECT
00032
00033 public:
00034
00035 TemplatesConfiguration( TQWidget *parent = 0, const char *name = 0 );
00036
00037 void loadFromGlobal();
00038 void saveToGlobal();
00039 void loadFromIdentity( uint id );
00040 void saveToIdentity( uint id );
00041 void loadFromFolder( TQString id, uint identity = 0 );
00042 void saveToFolder( TQString id );
00043
00045 void loadFromPhrases();
00046
00048 static void importFromPhrases();
00049
00051 static TQString convertPhrases( TQString &str );
00052
00053 static TQString defaultNewMessage();
00054 static TQString defaultReply();
00055 static TQString defaultReplyAll();
00056 static TQString defaultForward();
00057 static TQString defaultQuoteString();
00058
00059 public slots:
00060
00061 void slotInsertCommand( TQString cmd, int adjustCursor = 0 );
00062
00063 void slotTextChanged();
00064
00065 signals:
00066
00067 void changed();
00068
00069 protected:
00070
00071 TQString strOrBlank( TQString str );
00072
00073 };
00074
00075 #endif // TEMPLATESCONFIGURATION_H
|