GetAttr.h

См. документацию.
00001 /*
00002  * GetAttr.h
00003  *
00004  *  Created on: 22.05.2011
00005  *      Author: nick
00006  */
00007 
00008 #ifndef GETATTR_H_
00009 #define GETATTR_H_
00010 #include <iostream>
00011 #include "../XML/TagIQ.h"
00012 #include <string.h>
00013 #include <sys/types.h>
00014 #include <sys/stat.h>
00015 
00016 #define GetAttr_subNodeName "getattr-data"
00017 #define GetAttr_xmlnsData "getattr-data"
00018 #define GetAttr_xmlnsDataPath "getattr-data#path"
00019 #define GetAttr_xmlnsDataMode "getattr-data#mode"
00020 #define GetAttr_xmlnsDataNlink "getattr-data#nlink"
00021 #define GetAttr_xmlnsDataSize "getattr-data#size"
00022 #define GetAttr_xmlnsDataTime "getattr-data#time"
00023 #define GetAttr_xmlnsDataError "getattr-data#error"
00024 using namespace std;
00025 
00026 class GetAttr: public TagIQ {
00027 public:
00028         void setError(int errn);
00029         int getError();
00030         GetAttr(Node* parent=NULL,string from="", string to="", IQType type=TagIQ::Get, string id="");
00031         GetAttr(const Node &basedNode);
00032         string getPath();
00033         void setPath(string path);
00034         struct stat getFileInfo();
00035         void setFileInfo(struct stat st/*__mode_t mode, __nlink_t nlinks,__off_t fsize */);
00036         virtual ~GetAttr();
00037 };
00038 
00039 #endif /* GETATTR_H_ */