2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Author : Maxim Mamontov <faust@stargazer.dp.ua>
23 #include "stg/const.h" // DIR_NUM
58 using Callback = void (*)(bool result, const std::string& reason, void* data);
62 namespace GetContainer
68 using Type = void (*)(bool result, const std::string& reason, const std::vector<T>& info, void* data);
71 } // namespace GetContainer
76 using Info = std::vector<std::string>;
77 using Callback = void (*)(bool result, const std::string& reason, const Info& info, void* data);
92 std::array<std::string, DIR_NUM> dirName;
94 using Callback = void (*)(bool result, const std::string& reason, const Info& info, void* data);
96 } // namespace ServerInfo
101 using Callback = void (*)(bool result, const std::string& reason, const std::string& response, void* data);
103 } // namespace RawXML
110 std::array<long long, DIR_NUM> su;
111 std::array<long long, DIR_NUM> sd;
112 std::array<long long, DIR_NUM> mu;
113 std::array<long long, DIR_NUM> md;
119 std::string password;
124 double lastCashAddTime;
129 int disableDetailStat;
144 time_t lastActivityTime;
145 std::array<std::string, USERDATA_NUM> userData;
146 std::vector<std::string> services;
147 std::vector<std::string> authBy;
150 using Callback = void (*)(bool result, const std::string& reason, const Info& info, void* data);
152 } // namespace GetUser
157 using Info = AdminConf;
158 using Callback = void (*)(bool result, const std::string& reason, const Info& info, void* data);
160 } // namespace GetAdmin
165 using Info = TariffData;
166 using Callback = void (*)(bool result, const std::string& reason, const Info& info, void* data);
168 } // namespace GetTariff
173 using Info = ServiceConf;
174 using Callback = void (*)(bool result, const std::string& reason, const Info& info, void* data);
176 } // namespace GetService
181 using Info = CorpConf;
182 using Callback = void (*)(bool result, const std::string& reason, const Info& info, void* data);
184 } // namespace GetCorp