00001 /* 00002 * File: BaseOneOperation.h 00003 * Author: nick 00004 * 00005 * Created on 26 Сентябрь 2011 г., 18:30 00006 */ 00007 00008 #ifndef _BASEONEOPERATION_H 00009 #define _BASEONEOPERATION_H 00010 00011 #include "../XML/TagHandler.h" 00012 #include "../XML/Server.h" 00013 #include "../XML/TagIQ.h" 00014 #include <sys/types.h> 00015 #include <dirent.h> 00016 #include "../ServerConfig.h" 00017 00018 #include <sys/stat.h> 00019 #include <fcntl.h> 00020 #include "GlobalData.h" 00021 //#include "main.h" 00022 template <class T> 00023 class BaseOneOperation:public TagHandler<TagIQ> { 00024 protected: 00025 ServerConfig* sc; 00026 string tagNS; 00027 private: 00028 Server* protocol; 00029 public: 00030 virtual int fileFunc(T* filetag)=0; 00031 void handleTag(TagIQ &tag); 00032 BaseOneOperation(Server &protocol,ServerConfig* sc,string tagNS); 00033 virtual ~BaseOneOperation(); 00034 00035 }; 00036 #include "../LibFileOperations/BaseOneOperation.cpp" 00037 #endif /* _BASEONEOPERATION_H */ 00038
1.7.1