Revision: 40794
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40794&view=rev
Author:   davidloman
Date:     2010-09-29 12:34:45 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
Start implementing details of Msg handling.

Modified Paths:
--------------
    rt^3/trunk/src/GS/SessionManager.cxx
    rt^3/trunk/src/GS/SessionManager.h

Modified: rt^3/trunk/src/GS/SessionManager.cxx
===================================================================
--- rt^3/trunk/src/GS/SessionManager.cxx        2010-09-29 12:33:43 UTC (rev 
40793)
+++ rt^3/trunk/src/GS/SessionManager.cxx        2010-09-29 12:34:45 UTC (rev 
40794)
@@ -25,7 +25,9 @@
 
 #include "SessionManager.h"
 #include "AccountManager.h"
+#include "NetMsgTypes.h"
 #include "libutility.h"
+
 #include <QtCore/QMutexLocker>
 
 SessionManager* SessionManager::pInstance = NULL;
@@ -61,9 +63,32 @@
 bool
 SessionManager::handleNetMsg(NetMsg* msg)
 {
+       quint16 type = msg->getMsgType();
+       switch(type) {
+       case NEWSESSIONREQ:
+               break;
+       case SESSIONINFO:
+               //Dunno why someone would be sending the GS this message!
+               break;
+       case LOGOUTSESSION:
+               break;
 
+       }
 }
 
+/*
+ * Msg Handlers
+ */
+void SessionManager::handleNewSessionReqMsg(NewSessionReqMsg* msg)
+{
+       Account* a = AccountManager::getInstance()->login(msg->getUName(), 
msg->getPasswd(), msg->getOrigin());
+       Session* s = this->newSession(a);
+
+
+
+}
+
+
 // Local Variables: ***
 // mode: C++ ***
 // tab-width: 8 ***

Modified: rt^3/trunk/src/GS/SessionManager.h
===================================================================
--- rt^3/trunk/src/GS/SessionManager.h  2010-09-29 12:33:43 UTC (rev 40793)
+++ rt^3/trunk/src/GS/SessionManager.h  2010-09-29 12:34:45 UTC (rev 40794)
@@ -28,6 +28,8 @@
 
 #include "Session.h"
 #include "INetMsgHandler.h"
+#include "NewSessionReqMsg.h"
+
 #include <QtCore/QMap>
 #include <QtCore/QMutex>
 
@@ -45,6 +47,8 @@
 
     QMutex sesIDMapLock;
     QMap<quint32, Session*>* sessionIdMap;
+
+    void handleNewSessionReqMsg(NewSessionReqMsg* msg);
 };
 
 #endif


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to