libyui-qt-graph  2.42.7
 All Classes Functions
YQGraphPlugin.h
1 /*
2  * Copyright (c) [2009-2012] Novell, Inc.
3  *
4  * All Rights Reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of version 2 of the GNU General Public License as published
8  * by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, contact Novell, Inc.
17  *
18  * To contact Novell about this file by physical or electronic mail, you may
19  * find current contact information at www.novell.com.
20  */
21 
22 /*
23  * File: YQGraphPlugin.h
24  * Author: Arvin Schnell <aschnell@suse.de>
25  */
26 
27 
28 #ifndef YQGraphPlugin_h
29 #define YQGraphPlugin_h
30 
31 #include <YGraphPlugin.h>
32 #include "YQGraph.h"
33 
34 
35 /**
36  * Simplified access to the Qt UI's package selector plugin.
37  **/
38 class YQGraphPlugin : public YGraphPlugin
39 {
40 public:
41 
42  /**
43  * Constructor: Load the plugin library for the Qt package selector.
44  **/
45  YQGraphPlugin();
46 
47  /**
48  * Destructor. Calls dlclose() which will unload the plugin library if it
49  * is no longer used, i.e. if the reference count dlopen() uses reaches 0.
50  **/
51  virtual ~YQGraphPlugin();
52 
53  /**
54  * Create a package selector.
55  * Implemented from YGraphPlugin.
56  *
57  * This might return 0 if the plugin lib could not be loaded or if the
58  * appropriate symbol could not be located in the plugin lib.
59  **/
60  virtual YQGraph * createGraph ( YWidget * parent, const std::string & filename,
61  const std::string & layoutAlgorithm );
62 
63 };
64 
65 
66 #endif // YQGraphPlugin_h
virtual ~YQGraphPlugin()
virtual YQGraph * createGraph(YWidget *parent, const std::string &filename, const std::string &layoutAlgorithm)