]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/configproto.h
Minor changes in plugin interface.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / configproto.h
index 2b76c4136604facc2d75a4b45c52d44018bdaa0c..42d5e7fa469a595b538f3226e19d3254014d789e 100644 (file)
@@ -63,10 +63,6 @@ public:
 
     void            SetPort(uint16_t p) { port = p; }
     void            SetAdmins(ADMINS * a);
-    void            SetUsers(USERS * u);
-    void            SetTariffs(TARIFFS * t);
-    void            SetStore(STORE * s);
-    void            SetStgSettings(const SETTINGS * s);
     uint32_t        GetAdminIP() const { return adminIP; }
     int             Prepare();
     int             Stop();
@@ -84,13 +80,13 @@ private:
     int             RecvLoginS(int sock);
     int             SendLoginSAnswer(int sock, int err);
     int             RecvData(int sock);
-    int             SendDataAnswer(int sock);
-    void            SendError(const char * text);
+    int             SendDataAnswer(int sock, const std::string & answer);
+    int             SendError(int sock, const std::string & text);
     void            WriteLogAccessFailed(uint32_t ip);
+    const std::string & GetDataAnswer() const { return dataAnswer; }
 
     int             ParseCommand();
 
-    std::list<std::string>      answerList;
     std::list<std::string>      requestList;
     uint32_t                    adminIP;
     std::string                 adminLogin;
@@ -101,6 +97,7 @@ private:
     int                         state;
     ADMIN *                     currAdmin;
     PLUGIN_LOGGER &             logger;
+    std::string                 dataAnswer;
 
     int                         listenSocket;