kmail

mailinglist-magic.h
1 #ifndef MAILINGLIST_MAGIC_H
2 #define MAILINGLIST_MAGIC_H
3 
4 #include <kurl.h>
5 #include <tqstring.h>
6 
7 class KMMessage;
8 class TDEConfig;
9 
10 namespace KMail
11 {
12 
23 {
24 public:
25  enum Handler {
26  KMail,
27  Browser
28  };
29 
30  enum Supports {
31  None = 0 << 0,
32  Post = 1 << 0,
33  Subscribe = 1 << 1,
34  Unsubscribe = 1 << 2,
35  Help = 1 << 3,
36  Archive = 1 << 4,
37  Id = 1 << 5
38  };
39 public:
40  static MailingList detect( const KMMessage* msg );
41  static TQString name( const KMMessage *message, TQCString &header_name,
42  TQString &header_value );
43 public:
44  MailingList();
45 
46  int features() const;
47 
48  void setHandler( Handler han );
49  Handler handler() const;
50 
51  void setPostURLS ( const KURL::List& );
52  KURL::List postURLS() const;
53 
54  void setSubscribeURLS( const KURL::List& );
55  KURL::List subscribeURLS() const;
56 
57  void setUnsubscribeURLS ( const KURL::List& );
58  KURL::List unsubscribeURLS() const;
59 
60  void setHelpURLS( const KURL::List& );
61  KURL::List helpURLS() const;
62 
63  void setArchiveURLS( const KURL::List& );
64  KURL::List archiveURLS() const;
65 
66  void setId( const TQString& );
67  TQString id() const;
68 
69  void writeConfig( TDEConfig* config ) const;
70  void readConfig( TDEConfig* config );
71 private:
72  int mFeatures;
73  Handler mHandler;
74  KURL::List mPostURLS;
75  KURL::List mSubscribeURLS;
76  KURL::List mUnsubscribeURLS;
77  KURL::List mHelpURLS;
78  KURL::List mArchiveURLS;
79  TQString mId;
80 };
81 
82 }
83 
84 #endif
This is a Mime Message.
Definition: kmmessage.h:68
Class is used for all Mailing List handling inside KMail.
folderdiaquotatab.h
Definition: aboutdata.cpp:40