Revision: 40792
http://brlcad.svn.sourceforge.net/brlcad/?rev=40792&view=rev
Author: davidloman
Date: 2010-09-29 12:32:37 +0000 (Wed, 29 Sep 2010)
Log Message:
-----------
Stub in Account timestamping for inactivity/caching purposes in the near future.
Modified Paths:
--------------
rt^3/trunk/src/GS/Account.cxx
rt^3/trunk/src/GS/Account.h
Modified: rt^3/trunk/src/GS/Account.cxx
===================================================================
--- rt^3/trunk/src/GS/Account.cxx 2010-09-29 12:10:28 UTC (rev 40791)
+++ rt^3/trunk/src/GS/Account.cxx 2010-09-29 12:32:37 UTC (rev 40792)
@@ -27,6 +27,7 @@
Account::Account(QString uname, Portal* portal) :
uname(uname), portal(portal) {
+ //TODO need time/date stamping for creation/last access.
}
Account::~Account() {
@@ -36,6 +37,19 @@
return this->uname;
}
+void
+Account::stampLastAccess()
+{
+ this->lastAccess = time (NULL);
+}
+
+time_t
+Account::getInactivityTime()
+{
+ return this->lastAccess;
+}
+
+
// Local Variables: ***
// mode: C++ ***
// tab-width: 8 ***
Modified: rt^3/trunk/src/GS/Account.h
===================================================================
--- rt^3/trunk/src/GS/Account.h 2010-09-29 12:10:28 UTC (rev 40791)
+++ rt^3/trunk/src/GS/Account.h 2010-09-29 12:32:37 UTC (rev 40792)
@@ -28,6 +28,7 @@
#include "Portal.h"
#include <QtCore/QString>
+#include <ctime>
class Account
{
@@ -36,10 +37,14 @@
Account(QString uname, Portal* portal);
virtual ~Account();
QString getUname();
+ time_t getInactivityTime();
private:
QString uname;
Portal* portal;
+
+ time_t lastAccess;
+ void stampLastAccess();
};
#endif /* __ACCOUNT_H__ */
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