00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __IWESTORAGE_H__
00021 #define __IWESTORAGE_H__
00022
00023 #pragma once
00024 #include "weiPlugin.h"
00025
00034 class iweStorage :
00035 public iwePlugin
00036 {
00037 public:
00038 iweStorage(void* handle = NULL);
00039 virtual ~iweStorage(void);
00040
00041
00042 virtual void* GetInterface(const string& ifName);
00043 virtual char** GetIcon();
00044 virtual const string InterfaceName();
00045 virtual WeStringList InterfaceList();
00046
00047
00048 typedef enum { mask = 0xff} Operation;
00049 static const Operation insert = (Operation)0x01;
00050 static const Operation update = (Operation)0x02;
00051 static const Operation remove = (Operation)0x03;
00052 static const Operation autoop = (Operation)0xff;
00053
00054 virtual string GenerateID(string objType = "");
00055
00056 virtual int Query(const string& objType, Operation op, const string& xmlData);
00057 virtual int Report(const string& repType, const string& xmlData, string& result);
00058
00059 virtual int Delete(const string& objType, const string& xmlData);
00060
00061 virtual int TaskSave(const string& xmlData, Operation op = iweStorage::autoop);
00062 virtual int DictionarySave(const string& xmlData, Operation op = iweStorage::autoop);
00063 virtual int AuthorizationSave(const string& xmlData, Operation op = iweStorage::autoop);
00064 virtual int SystemOptionsSave(const string& xmlData, Operation op = iweStorage::autoop);
00065
00066 virtual int TaskReport(const string& xmlData, string& result);
00067 virtual int DictionaryReport(const string& xmlData, string& result);
00068 virtual int AuthorizationReport(const string& xmlData, string& result);
00069 virtual int SystemOptionsReport(const string& xmlData, string& result);
00070
00071 protected:
00072 static int lastId;
00073 };
00074
00075 #endif //__IWESTORAGE_H__