]> git.stg.codes - stg.git/commitdiff
Cleaned up some headers.
authorMaxim Mamontov <faust.madf@gmail.com>
Fri, 20 Jun 2014 22:28:36 +0000 (01:28 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Fri, 9 Jan 2015 20:37:01 +0000 (22:37 +0200)
Conflicts:
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp

projects/stargazer/plugins/configuration/sgconfig/configproto.cpp
projects/stargazer/plugins/configuration/sgconfig/parser.cpp
projects/stargazer/plugins/configuration/sgconfig/parser.h
projects/stargazer/plugins/configuration/sgconfig/parser_admin.cpp
projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp
projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp
projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp

index 7ece6549344b41cfe86f721ffaef41a9a108ae46..162f08750a03c25c52a3e0042853df58e8a39e4c 100644 (file)
@@ -37,6 +37,7 @@
 #include "stg/admins.h"
 #include "stg/tariffs.h"
 #include "stg/logger.h"
+#include "stg/common.h"
 
 #include <unistd.h>
 
index 360d07c74a0d7c432b77f66c4efe7fc823947e43..dd654a1e75559c77beb2a3129b57563c59bc01f0 100644 (file)
@@ -1,20 +1,38 @@
-#include <stdio.h>
-#include <sys/utsname.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+/*
+ *    This program is free software; you can redistribute it and/or modify
+ *    it under the terms of the GNU General Public License as published by
+ *    the Free Software Foundation; either version 2 of the License, or
+ *    (at your option) any later version.
+ *
+ *    This program is distributed in the hope that it will be useful,
+ *    but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *    GNU General Public License for more details.
+ *
+ *    You should have received a copy of the GNU General Public License
+ *    along with this program; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+/*
+ *    Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
+ */
 
-#include <cstring>
-#include <cerrno>
-#include <sstream>
+#include "parser.h"
 
-#include "stg/version.h"
 #include "stg/tariffs.h"
+#include "stg/admin.h"
+#include "stg/users.h"
 #include "stg/user_property.h"
 #include "stg/settings.h"
 #include "stg/logger.h"
-#include "parser.h"
+#include "stg/version.h"
+#include "stg/store.h"
+
+#include <cstring>
+#include <cstdio> // sprintf
+
+#include <sys/utsname.h>
 
 #define  UNAME_LEN      (256)
 
index f854a759116640593f06731319316747acbc6cb6..24200ebdf759b91e1935e34657b4eb9791ecaa1f 100644 (file)
@@ -1,25 +1,43 @@
- /*
- $Revision: 1.20 $
- $Date: 2010/10/04 20:26:10 $
- $Author: faust $
+/*
+ *    This program is free software; you can redistribute it and/or modify
+ *    it under the terms of the GNU General Public License as published by
+ *    the Free Software Foundation; either version 2 of the License, or
+ *    (at your option) any later version.
+ *
+ *    This program is distributed in the hope that it will be useful,
+ *    but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *    GNU General Public License for more details.
+ *
+ *    You should have received a copy of the GNU General Public License
+ *    along with this program; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+/*
+ *    Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
  */
 
 #ifndef PARSER_H
 #define PARSER_H
 
+#include "stg/message.h"
+#include "stg/tariff_conf.h"
 #include "stg/resetable.h"
 #include "stg/const.h"
-#include "stg/store.h"
-#include "stg/admins.h"
-#include "stg/admin.h"
-#include "stg/users.h"
-#include "stg/message.h"
 
 #include <string>
 #include <vector>
 
 class TARIFFS;
 class SETTINGS;
+class STORE;
+class ADMINS;
+class ADMIN;
+class USERS;
+class USER;
+class USER_STAT_RES;
+class USER_CONF_RES;
 
 //-----------------------------------------------------------------------------
 class BASE_PARSER {
index 7783888e37d24e632c4771bb2645a98ca00328c1..fef2efbad3434cd7a7411c38663b7766d1fcf631 100644 (file)
@@ -1,8 +1,10 @@
-#include <stdio.h>
-#include <string.h>
-
 #include "parser.h"
 
+#include "stg/admins.h"
+#include "stg/common.h"
+
+#include <strings.h> // strcasecmp
+
 //-----------------------------------------------------------------------------
 //  GET ADMINS
 //-----------------------------------------------------------------------------
index 1ac27d6500c3208e91f8eb87f591e3f0043a5119..21765e11c1a9b18dcf10181797145bd69c8e2eee 100644 (file)
@@ -1,5 +1,8 @@
 #include "parser_auth_by.h"
 
+#include "stg/users.h"
+#include "stg/user.h"
+
 int PARSER_AUTH_BY::ParseStart(void * /*data*/, const char *el, const char **attr)
 {
 if (strcasecmp(el, "GetUserAuthBy") == 0)
index 88ab267082e76aa83a0decf9c793f281fcf2d937..e083f85292b0ea60929bbdf54be2d948b6b8ee4a 100644 (file)
@@ -1,8 +1,11 @@
-#include <cstdio> // snprintf
-#include <cstring>
+#include "parser.h"
 
 #include "stg/tariffs.h"
-#include "parser.h"
+#include "stg/users.h"
+#include "stg/common.h"
+
+#include <cstdio> // snprintf
+#include <cstring>
 
 const int pt_mega = 1024 * 1024;
 //-----------------------------------------------------------------------------
index 9488d71d8a28def73abb39cb270108268f33a2fe..0986b7017560780ef15ae71bda7dc07255ab78d7 100644 (file)
  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-/*******************************************************************
-*
-*    DESCRIPTION: æÁÊÌ Ó ÏÓÎÏ×ÎÙÍÉ ÆÕÎËÃÉÑÍÉ ÄÌÑ ÓÅÔÅ×ÏÇÏ ÏÂÍÅÎÁ ÄÁÎÎÙÍÉ
-*    Ó ÍÅÎÅÄÖÅÒÏÍ ËÌÉÅÎÔÏ×. ðÒÉÅÍ, ÐÅÒÅÄÁÞÁ É ÛÉÆÒÏ×ÁÎÉÅ ÓÏÏÂÝÅÎÉÊ.
-*
-*    AUTHOR: Boris Mikhailenko <stg34@stargazer.dp.ua>
-*
-*    $Revision: 1.24 $
-*    $Date: 2010/10/04 20:24:54 $
-*
-*******************************************************************/
+/*
+ *    Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
+ */
 
 #include "configproto.h"
 
 #include "parser.h"
 
+#include "stg/admins.h"
 #include "stg/logger.h"
 #include "stg/common.h"
 #include "stg/blowfish.h"