yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
wfm
src
WFMSubAgent.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| |
3
| __ __ ____ _____ ____ |
4
| \ \ / /_ _/ ___|_ _|___ \ |
5
| \ V / _` \___ \ | | __) | |
6
| | | (_| |___) || | / __/ |
7
| |_|\__,_|____/ |_| |_____| |
8
| |
9
| core system |
10
| (C) SuSE GmbH |
11
\----------------------------------------------------------------------/
12
13
File: WFMSubAgent.h
14
15
Author: Arvin Schnell <arvin@suse.de>
16
Maintainer: Arvin Schnell <arvin@suse.de>
17
18
/-*/
19
20
#ifndef WFMSubAgent_h
21
#define WFMSubAgent_h
22
23
#include <string>
24
25
using
std::string;
26
27
#include <
y2/Y2Component.h
>
28
29
33
class
WFMSubAgent
34
{
35
36
public
:
37
41
WFMSubAgent
(
const
string
&,
int
);
42
46
~WFMSubAgent
();
47
51
bool
start
();
52
59
bool
start_and_check
(
bool
,
int
*);
60
64
string
get_name
()
const
{
return
my_name
; }
65
69
int
get_handle
()
const
{
return
my_handle
; }
70
75
Y2Component
*
comp
() {
return
my_comp
; }
76
82
SCRAgent
*
agent
() {
return
my_agent
?
my_agent
: (
my_comp
?
my_comp
->
getSCRAgent
() : 0); }
83
84
private
:
85
89
const
string
my_name
;
90
94
const
int
my_handle
;
95
99
Y2Component
*
my_comp
;
100
104
SCRAgent
*
my_agent
;
105
106
WFMSubAgent
(
const
WFMSubAgent
&);
// disallow
107
void
operator =
(
const
WFMSubAgent
&);
// disallow
108
109
};
110
111
112
inline
bool
113
wfmsubagent_less
(
const
WFMSubAgent
* a,
int
handle)
// FIXME
114
{
115
return
a->
get_handle
() < handle;
116
}
117
118
119
#endif // WFMSubAgent_h
Generated on a sunny day for yast2-core by
1.8.2