1 #ifndef _SMAPIAREA_H
2 #define _SMAPIAREA_H
3 
4 #include <stdio.h>
5 #include <qstring.h>
6 #include <qlist.h>
7 
8 extern "C" {
9 #include <smapi/msgapi.h>
10 }
11 #include "address.h"
12 #include "smapimsg.h"
13 
14 
15 class smapiArea
16 {
17 public:
18     smapiArea(char* newname, char* newpath, word mode, word type, address* newareaaddr);
19 
20     ~smapiArea();
21 
22     QString getName();
23     QString getPath();
24     UMSGID msgNum2UmsgId(int num);
25     int umsgId2MsgNum(UMSGID umsgid);
26     int getCurMsgNum();
27     int getCurUmsgId();
28     int getLastRead();
29     void setCurUmsgId(UMSGID newumsgid);
30     int getAreaSize();
31     address *getAddress();
32     HAREA getHAREA();
33     void setLastRead(UMSGID newlastread);
34 
35     enum OPENMODE {NORMAL, CREAT, CRIFNEC};
36     enum AREATYPE {SDM, SQUISH, ECHO};
37 
38 private:
39     HAREA harea;
40     UMSGID lastread;
41 
42     QString name;
43     QString path;
44 
45     address* areaaddress;
46 };
47 
48 #endif
49 
50