yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
agent-dummy
src
DummyAgent.h
Go to the documentation of this file.
1
/*
2
* DummyAgent.h
3
*
4
* A dummy agent, only for testing purposes
5
*
6
* Author: Klaus Kaempf <kkaempf@suse.de>
7
* Michal Svec <msvec@suse.cz>
8
* Petr Blahos <pblahos@suse.cz>
9
* Gabriele Strattner <gs@suse.de>
10
*
11
* $Id$
12
*
13
*/
14
15
#ifndef DummyAgent_h
16
#define DummyAgent_h
17
18
#include <
scr/SCRAgent.h
>
19
#include <
Y2.h
>
20
25
class
DummyAgent
:
public
SCRAgent
26
{
27
private
:
31
YCPList
readList
;
32
YCPList
writeList
;
33
YCPList
execList
;
34
38
YCPValue
defaultValue
;
39
YCPMap
defaultMap
;
40
44
int
readCalls
;
45
int
writeCalls
;
46
int
execCalls
;
47
48
YCPValue
checkPath
(
const
YCPPath
& path,
const
YCPMap
& map,
const
YCPValue
& defaultVal);
49
50
public
:
51
DummyAgent
();
52
58
YCPValue
Read
(
const
YCPPath
& path,
const
YCPValue
& arg =
YCPNull
(),
const
YCPValue
& opt =
YCPNull
());
59
64
YCPBoolean
Write
(
const
YCPPath
& path,
const
YCPValue
& value,
const
YCPValue
& arg =
YCPNull
());
65
70
YCPValue
Execute
(
const
YCPPath
& path,
const
YCPValue
& value,
const
YCPValue
& arg =
YCPNull
());
71
75
YCPList
Dir
(
const
YCPPath
& path);
76
80
YCPValue
otherCommand
(
const
YCPTerm
& term);
81
};
82
83
84
#endif // DummyAgent_h
Generated on a sunny day for yast2-core by
1.8.2