summaryrefslogtreecommitdiffstats
path: root/servers/auth_server_lin/src/auth_conn.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-24 18:23:18 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-24 18:23:18 -0500
commite23898e185c0f639c6c6b98478b8b21f1ae83720 (patch)
treee5e2fd731ac59299cd68ed017d11f1ad9a9462d6 /servers/auth_server_lin/src/auth_conn.h
parent8dcfe72c396a6f0c4bafd2ed23ba52a475154ef2 (diff)
downloadulab-e23898e185c0f639c6c6b98478b8b21f1ae83720.tar.gz
ulab-e23898e185c0f639c6c6b98478b8b21f1ae83720.zip
Update protocol and implement LIST/BIND logic
Diffstat (limited to 'servers/auth_server_lin/src/auth_conn.h')
-rw-r--r--servers/auth_server_lin/src/auth_conn.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/servers/auth_server_lin/src/auth_conn.h b/servers/auth_server_lin/src/auth_conn.h
index 3ce82e2..710b4c0 100644
--- a/servers/auth_server_lin/src/auth_conn.h
+++ b/servers/auth_server_lin/src/auth_conn.h
@@ -28,6 +28,10 @@
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <tqtextstream.h>
+#include <tqsqldatabase.h>
+#include <tqsqlcursor.h>
+
+#include <ksimpleconfig.h>
#include <tdekrbserversocket.h>
@@ -50,12 +54,24 @@ class AuthSocket : public TDEKerberosServerSocket
int enterCommandLoop();
private slots:
+ int connectToDatabase();
void connectionClosedHandler();
private:
int line;
int m_criticalSection;
TQString m_remoteHost;
+ int m_stationID;
+
+ KSimpleConfig* m_config;
+ TQSqlDatabase* m_database;
+ TQSqlCursor* m_databaseStationsCursor;
+ TQSqlCursor* m_databaseServicesCursor;
+ TQSqlCursor* m_databaseServiceTypesCursor;
+ TQSqlCursor* m_databasePermissionsCursor;
+ TQSqlCursor* m_databaseActivityCursor;
+
+ StationList m_slist;
friend class AuthServer;
};
@@ -63,6 +79,7 @@ class AuthSocket : public TDEKerberosServerSocket
class AuthServer : public TQServerSocket
{
Q_OBJECT
+
public:
AuthServer(TQObject* parent=0);
~AuthServer();
@@ -72,4 +89,9 @@ class AuthServer : public TQServerSocket
signals:
void newConnect(AuthSocket*);
+ private:
+ KSimpleConfig* m_config;
+
+ friend class AuthSocket;
+
}; \ No newline at end of file