kmail
custommimeheader.h00001
00002
00003 #ifndef CUSTOMMIMEHEADER_H
00004 #define CUSTOMMIMEHEADER_H
00005
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008
00009 class CustomMimeHeader : public KConfigSkeleton
00010 {
00011 public:
00012
00013 CustomMimeHeader( const QString & pairId );
00014 ~CustomMimeHeader();
00015
00019 void setCustHeaderName( const QString & v )
00020 {
00021 if (!isImmutable( QString::fromLatin1( "CustHeaderName" ) ))
00022 mCustHeaderName = v;
00023 }
00024
00028 QString custHeaderName() const
00029 {
00030 return mCustHeaderName;
00031 }
00032
00036 ItemString *custHeaderNameItem()
00037 {
00038 return mCustHeaderNameItem;
00039 }
00040
00044 void setCustHeaderValue( const QString & v )
00045 {
00046 if (!isImmutable( QString::fromLatin1( "CustHeaderValue" ) ))
00047 mCustHeaderValue = v;
00048 }
00049
00053 QString custHeaderValue() const
00054 {
00055 return mCustHeaderValue;
00056 }
00057
00061 ItemString *custHeaderValueItem()
00062 {
00063 return mCustHeaderValueItem;
00064 }
00065
00066 protected:
00067 QString mParampairId;
00068
00069
00070 QString mCustHeaderName;
00071 QString mCustHeaderValue;
00072
00073 private:
00074 ItemString *mCustHeaderNameItem;
00075 ItemString *mCustHeaderValueItem;
00076 };
00077
00078 #endif
00079
|