Revision: 40809
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40809&view=rev
Author:   davidloman
Date:     2010-09-29 13:30:18 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
Account needs to include its own id.

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

Modified: rt^3/trunk/src/GS/Account.cxx
===================================================================
--- rt^3/trunk/src/GS/Account.cxx       2010-09-29 13:25:09 UTC (rev 40808)
+++ rt^3/trunk/src/GS/Account.cxx       2010-09-29 13:30:18 UTC (rev 40809)
@@ -25,18 +25,25 @@
 
 #include "Account.h"
 
-Account::Account(QString uname, Portal* portal) :
-       uname(uname), portal(portal) {
+Account::Account(QString uname, Portal* portal, quint32 id) :
+       uname(uname), portal(portal), id(id) {
        this->stampLastAccess();
 }
 
 Account::~Account() {
 }
 
-QString Account::getUname() {
+QString
+Account::getUname() {
        return this->uname;
 }
 
+quint32
+Account::getID()
+{
+       return this->id;
+}
+
 void
 Account::stampLastAccess()
 {

Modified: rt^3/trunk/src/GS/Account.h
===================================================================
--- rt^3/trunk/src/GS/Account.h 2010-09-29 13:25:09 UTC (rev 40808)
+++ rt^3/trunk/src/GS/Account.h 2010-09-29 13:30:18 UTC (rev 40809)
@@ -34,13 +34,15 @@
 {
 
 public:
-  Account(QString uname, Portal* portal);
+  Account(QString uname, Portal* portal, quint32 id);
   virtual ~Account();
   QString getUname();
   time_t getInactivityTime();
   void stampLastAccess();
+  quint32 getID();
   
 private:
+  quint32 id;
   QString uname;
   Portal* portal;
 

Modified: rt^3/trunk/src/GS/AccountManager.cxx
===================================================================
--- rt^3/trunk/src/GS/AccountManager.cxx        2010-09-29 13:25:09 UTC (rev 
40808)
+++ rt^3/trunk/src/GS/AccountManager.cxx        2010-09-29 13:30:18 UTC (rev 
40809)
@@ -91,7 +91,7 @@
 
        log->logINFO("AccountManager", "Authenticated user: '" + uname + "'");
 
-       Account* acc = new Account(uname,p);
+       Account* acc = new Account(uname, p, id);
 
        //TODO cache account here.
        QMutexLocker locker(&this->accountListLock);


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