00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _SERVERHANDLER_H
00024 #define _SERVERHANDLER_H
00025
00026 #include <SocketHandler.h>
00027 #include <mysql/mysql.h>
00028 #include <libmysqlwrapped.h>
00029 #include "Mime.h"
00030 #include "Configuration.h"
00031
00032
00033 class ServerHandler : public SocketHandler
00034 {
00035 public:
00036 ServerHandler(const std::string& );
00037 ~ServerHandler();
00038
00039 bool Exists(const std::string& );
00040 int GetInt(const std::string& );
00041 std::string GetString(const std::string& );
00042 bool GetBoolean(const std::string& );
00043 std::string GetMimetype(const std::string& );
00044
00045 Database *GetDatabase() { return &m_db; }
00046
00047 private:
00048 Configuration m_config;
00049 Database m_db;
00050 Mime m_mime;
00051 };
00052
00053
00054
00055
00056 #endif // _SERVERHANDLER_H