kmail
kmmsglist.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef kmmsglist_h
00021 #define kmmsglist_h
00022
00023 #include "kmmsgbase.h"
00024
00025 #include <qmemarray.h>
00026
00037 class KMMsgList: public QMemArray<KMMsgBase*>
00038 {
00039 public:
00040
00042 KMMsgList(int initialSize=32);
00043
00045 ~KMMsgList();
00046
00049 void remove(unsigned int idx);
00050
00053 KMMsgBase* take(unsigned int idx);
00054
00057 void insert(unsigned int idx, KMMsgBase* msg, bool syncDict = true);
00058
00062 unsigned int append(KMMsgBase* msg, bool syncDict = true);
00063
00067 void clear(bool autoDelete=TRUE, bool syncDict = false);
00068
00071 bool resize(unsigned int size);
00072
00075 bool reset(unsigned int size);
00076
00080 void set(unsigned int idx, KMMsgBase* msg);
00081
00083 unsigned int high() const { return mHigh; }
00084
00086 unsigned int count() const { return mCount; }
00087
00088 protected:
00090 void rethinkHigh();
00091
00092 unsigned int mHigh, mCount;
00093 };
00094
00095
00096 #endif
|