yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
liby2
src
include
y2
Y2Component.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: Y2Component.h
14
15
Author: Mathias Kettner <kettner@suse.de>
16
Thomas Roelz <tom@suse.de>
17
Stanislav Visnovsky <visnov@suse.cz>
18
Maintainer: Stanislav Visnovsky <visnov@suse.cz>
19
20
/-*/
21
// -*- c++ -*-
22
23
#ifndef Y2Component_h
24
#define Y2Component_h
25
26
#include <string>
27
28
using
std::string;
29
30
class
SCRAgent
;
31
class
Y2Namespace
;
32
class
YCPValue
;
33
class
YCPList
;
34
262
class
Y2Component
263
{
264
public
:
265
266
/* ================ common ================ */
267
268
Y2Component
();
269
273
virtual
~Y2Component
();
274
278
virtual
string
name
()
const
= 0;
279
280
/* ================ server ================ */
281
292
virtual
YCPValue
evaluate
(
const
YCPValue
& command);
293
300
virtual
void
result
(
const
YCPValue
&
result
);
301
313
virtual
void
setServerOptions
(
int
argc,
char
**argv);
314
332
virtual
Y2Namespace
*
import
(
const
char
* name_space);
333
334
/* ================ client ================ */
335
353
virtual
YCPValue
doActualWork
(
const
YCPList
& arglist,
Y2Component
*user_interface);
354
355
/* ================ misc ================ */
356
363
virtual
SCRAgent
*
getSCRAgent
();
364
365
virtual
bool
remote
()
const
;
366
};
367
368
#endif // Y2Component_h
Generated on a sunny day for yast2-core by
1.8.2