yast2-core
Y2ComponentCreator.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: Y2ComponentCreator.h
14 
15  Author: Mathias Kettner <kettner@suse.de>
16  Maintainer: Thomas Roelz <tom@suse.de>
17 
18 /-*/
19 // -*- c++ -*-
20 
21 #ifndef Y2ComponentCreator_h
22 #define Y2ComponentCreator_h
23 
24 #include "Y2ComponentBroker.h"
25 
44 {
45 public:
55  Y2ComponentCreator(Y2ComponentBroker::order_t order, bool force_register);
56 
60  virtual ~Y2ComponentCreator();
61 
70  virtual Y2Component *create(const char *name) const;
71 
78  virtual Y2Component *createInLevel(const char *name, int level, int current_level) const;
79 
85  virtual Y2Component *provideNamespace(const char *name);
86 
90  virtual bool isServerCreator() const = 0;
91 
95  bool isClientCreator() const;
96 };
97 
98 #endif // Y2ComponentCreator_h
order_t
Definition: Y2ComponentBroker.h:98
virtual Y2Component * createInLevel(const char *name, int level, int current_level) const
Definition: Y2ComponentCreator.cc:58
bool isClientCreator() const
Definition: Y2ComponentCreator.cc:40
virtual Y2Component * create(const char *name) const
Definition: Y2ComponentCreator.cc:45
virtual bool isServerCreator() const =0
Communication handle to a YaST2 component.
Definition: Y2Component.h:262
virtual Y2Component * provideNamespace(const char *name)
Definition: Y2ComponentCreator.cc:51
virtual ~Y2ComponentCreator()
Definition: Y2ComponentCreator.cc:36
Can create certain YaST2 components As documented in Y2Component, there are many ways how to realize ...
Definition: Y2ComponentCreator.h:43
Y2ComponentCreator(Y2ComponentBroker::order_t order)
Definition: Y2ComponentCreator.cc:26

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