class IoTQuery {
public:
- IoTQuery(FCGX_Request * request);
- ~IoTQuery();
- void processQuery();
-
+ IoTQuery(FCGX_Request * request);
+ ~IoTQuery();
+ void processQuery();
+
private:
- void parseQuery();
- void getDirectory();
- void readData();
- int checkDirectory();
- int openStatusFile();
- void updateStatusFile();
-
- FCGX_Request * request;
- char *data;
- char *directory;
- const char * uri;
- const char * query;
- const char * method;
- const char * iotcloudroot;
- DIR *dir;
- long length;
- long firstentry;
- long lastentry;
- int numqueueentries;
- int fd;
+ void getQuery();
+ void getDirectory();
+ void readData();
+ bool checkDirectory();
+ bool openStatusFile();
+ void updateStatusFile();
+ void decodeQuery();
+ void getSlot();
+ void putSlot();
+
+ FCGX_Request * request;
+ char *data;
+ char *directory;
+ const char * uri;
+ const char * query;
+ const char * method;
+ const char * iotcloudroot;
+ DIR *dir;
+ long length;
+ long firstentry;
+ long lastentry;
+ long requestsequencenumber;
+ int numqueueentries;
+ int fd;
+ bool reqGetSlot;
+ bool reqPutSlot;
};
#endif