libyui-qt-pkg  2.42.13
 All Classes Functions Variables Enumerations
YQPackageSelectorPlugin.h
1 /**************************************************************************
2 Copyright (C) 2000 - 2010 Novell, Inc.
3 All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 
19 **************************************************************************/
20 
21 
22 
23 /*---------------------------------------------------------------------\
24 | |
25 | __ __ ____ _____ ____ |
26 | \ \ / /_ _/ ___|_ _|___ \ |
27 | \ V / _` \___ \ | | __) | |
28 | | | (_| |___) || | / __/ |
29 | |_|\__,_|____/ |_| |_____| |
30 | |
31 | core system |
32 | (c) SuSE Linux AG |
33 \----------------------------------------------------------------------/
34 
35  File: YQPackageSelectorPlugin.h
36 
37  Author: Stefan Hundhammer <sh@suse.de>
38 
39 /-*/
40 
41 
42 #ifndef YQPackageSelectorPlugin_h
43 #define YQPackageSelectorPlugin_h
44 
45 #include <YPackageSelectorPlugin.h>
46 #include "pkg/YQPackageSelector.h"
47 #include "pkg/YQPatternSelector.h"
48 #include "pkg/YQSimplePatchSelector.h"
49 
50 
51 /**
52  * Simplified access to the Qt UI's package selector plugin.
53  **/
54 class YQPackageSelectorPlugin: public YPackageSelectorPlugin
55 {
56 public:
57 
58  /**
59  * Constructor: Load the plugin library for the Qt package selector.
60  **/
62 
63  /**
64  * Destructor. Calls dlclose() which will unload the plugin library if it
65  * is no longer used, i.e. if the reference count dlopen() uses reaches 0.
66  **/
67  virtual ~YQPackageSelectorPlugin();
68 
69  /**
70  * Create a package selector.
71  * Implemented from YPackageSelectorPlugin.
72  *
73  * This might return 0 if the plugin lib could not be loaded or if the
74  * appropriate symbol could not be located in the plugin lib.
75  **/
76  virtual YQPackageSelector * createPackageSelector ( YWidget * parent,
77  long modeFlags = 0 );
78 
79  /**
80  * Create a pattern selector.
81  *
82  * This might return 0 if the plugin lib could not be loaded or if the
83  * appropriate symbol could not be located in the plugin lib.
84  **/
85  virtual YQPatternSelector * createPatternSelector ( YWidget * parent,
86  long modeFlags = 0 );
87  /**
88  * Create a simple patch selector.
89  *
90  * This might return 0 if the plugin lib could not be loaded or if the
91  * appropriate symbol could not be located in the plugin lib.
92  **/
93  virtual YQSimplePatchSelector * createSimplePatchSelector( YWidget * parent,
94  long modeFlags = 0 );
95 };
96 
97 
98 
99 #endif // YQPackageSelectorPlugin_h
virtual YQPackageSelector * createPackageSelector(YWidget *parent, long modeFlags=0)
virtual YQSimplePatchSelector * createSimplePatchSelector(YWidget *parent, long modeFlags=0)
virtual YQPatternSelector * createPatternSelector(YWidget *parent, long modeFlags=0)