diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-24 18:23:18 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-24 18:23:18 -0500 |
commit | e23898e185c0f639c6c6b98478b8b21f1ae83720 (patch) | |
tree | e5e2fd731ac59299cd68ed017d11f1ad9a9462d6 /servers/auth_server_lin/src/auth_conn.h | |
parent | 8dcfe72c396a6f0c4bafd2ed23ba52a475154ef2 (diff) | |
download | ulab-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.h | 22 |
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 |