2009-11-27 17:19:30 +00:00
|
|
|
#ifndef SESSION_H
|
|
|
|
#define SESSION_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <list>
|
2009-11-28 16:40:47 +00:00
|
|
|
#include <dbus/dbus-glib.h>
|
2009-11-27 17:19:30 +00:00
|
|
|
|
|
|
|
class Session
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Session();
|
|
|
|
~Session();
|
|
|
|
|
2009-11-28 16:40:47 +00:00
|
|
|
int Save();
|
2009-11-27 17:19:30 +00:00
|
|
|
int SaveAs(std::string name);
|
|
|
|
int Load(std::string name);
|
|
|
|
std::list<std::string> List();
|
|
|
|
|
|
|
|
private:
|
2009-11-28 16:40:47 +00:00
|
|
|
DBusGConnection *m_connection;
|
|
|
|
DBusGProxy *m_proxy;
|
|
|
|
static std::string m_last_name;
|
2009-11-27 17:19:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SESSION_H
|