kmail

customtemplates_kfg.h

00001 // This file is generated by kconfig_compiler from customtemplates_kfg.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef CTEMPLATES_H
00004 #define CTEMPLATES_H
00005 
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008 
00009 class CTemplates : public KConfigSkeleton
00010 {
00011   public:
00012 
00013     CTemplates( const QString & name );
00014     ~CTemplates();
00015 
00019     void setContent( const QString & v )
00020     {
00021       if (!isImmutable( QString::fromLatin1( "Content" ) ))
00022         mContent = v;
00023     }
00024 
00028     QString content() const
00029     {
00030       return mContent;
00031     }
00032 
00036     ItemString *contentItem()
00037     {
00038       return mContentItem;
00039     }
00040 
00044     void setShortcut( const QString & v )
00045     {
00046       if (!isImmutable( QString::fromLatin1( "Shortcut" ) ))
00047         mShortcut = v;
00048     }
00049 
00053     QString shortcut() const
00054     {
00055       return mShortcut;
00056     }
00057 
00061     ItemString *shortcutItem()
00062     {
00063       return mShortcutItem;
00064     }
00065 
00069     void setType( int v )
00070     {
00071       if (!isImmutable( QString::fromLatin1( "Type" ) ))
00072         mType = v;
00073     }
00074 
00078     int type() const
00079     {
00080       return mType;
00081     }
00082 
00086     ItemInt *typeItem()
00087     {
00088       return mTypeItem;
00089     }
00090 
00091   protected:
00092     QString mParamname;
00093 
00094     // CTemplates #$(name)
00095     QString mContent;
00096     QString mShortcut;
00097     int mType;
00098 
00099   private:
00100     ItemString *mContentItem;
00101     ItemString *mShortcutItem;
00102     ItemInt *mTypeItem;
00103 };
00104 
00105 #endif
00106 
KDE Home | KDE Accessibility Home | Description of Access Keys