yast2-core
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 
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
virtual bool remote() const
Definition: Y2Component.cc:88
virtual string name() const =0
virtual YCPValue doActualWork(const YCPList &arglist, Y2Component *user_interface)
Definition: Y2Component.cc:64
Y2Component()
Definition: Y2Component.cc:31
virtual YCPValue evaluate(const YCPValue &command)
Definition: Y2Component.cc:42
virtual SCRAgent * getSCRAgent()
Definition: Y2Component.cc:81
Communication handle to a YaST2 component.
Definition: Y2Component.h:262
SuSE Configuration Repository Agent.
Definition: SCRAgent.h:38
Wrapper for YCPListRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPListRep with the arrow operator. See YCPListRep.
Definition: YCPList.h:236
virtual void result(const YCPValue &result)
Definition: Y2Component.cc:50
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
Definition: Y2Namespace.h:43
virtual ~Y2Component()
Definition: Y2Component.cc:36
virtual void setServerOptions(int argc, char **argv)
Definition: Y2Component.cc:57

Generated on a sunny day for yast2-core by doxygen 1.8.5