blob: 265bb1c9b746b5305ac99b511c419af0d2ec38e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <pch.hpp>
#include <boost/foreach.hpp>
#include "scriptLoader.h"
#include "sessionClearTask.h"
#include "session.h"
#include "execContext.h"
DECLARE_LOADER("sessionclear", SessionClearTask);
SessionClearTask::SessionClearTask(ScriptNodePtr p) :
SourceObject(p),
Task(p),
key(p->value("key", NULL).as<Glib::ustring>())
{
}
SessionClearTask::~SessionClearTask()
{
}
void
SessionClearTask::execute(ExecContext * ec) const
{
ec->getSession()->ClearValue(key);
}
|