~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/kinfocenter/modules.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-27 12:09:48 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527120948-dottsyd5rcwhzd36
Tags: 4:4.0.80-1ubuntu1
* Merge with Debian
 - remove 97_fix_target_link_libraries.diff
 - Add replaces/conflicts on -kde4 packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright (c) 1999 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
 
3
 
 
4
 This program is free software; you can redistribute it and/or modify
 
5
 it under the terms of the GNU General Public License as published by
 
6
 the Free Software Foundation; either version 2 of the License, or
 
7
 (at your option) any later version.
 
8
 
 
9
 This program is distributed in the hope that it will be useful,
 
10
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 GNU General Public License for more details.
 
13
 
 
14
 You should have received a copy of the GNU General Public License
 
15
 along with this program; if not, write to the Free Software
 
16
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
17
 
 
18
 */
 
19
 
 
20
#ifndef MODULES_H
 
21
#define MODULES_H
 
22
 
 
23
#include <QObject>
 
24
#include <QVBoxLayout>
 
25
 
 
26
#include <kcmoduleinfo.h>
 
27
#include <kiconloader.h>
 
28
 
 
29
class QStringList;
 
30
class KAboutData;
 
31
class KCModule;
 
32
class ProxyWidget;
 
33
class QX11EmbedWidget;
 
34
class QVBoxLayout;
 
35
class KVBox;
 
36
 
 
37
class ConfigModule : public QObject, public KCModuleInfo {
 
38
        Q_OBJECT
 
39
 
 
40
public:
 
41
 
 
42
        ConfigModule(const KService::Ptr &s);
 
43
        ~ConfigModule();
 
44
 
 
45
        bool isActive() {
 
46
                return _module != 0;
 
47
        }
 
48
        ProxyWidget *module();
 
49
        const KAboutData *aboutData() const;
 
50
        
 
51
        QPixmap realIcon(KIconLoader::StdSizes size);
 
52
 
 
53
public slots:
 
54
 
 
55
        void deleteClient();
 
56
 
 
57
private:
 
58
 
 
59
        ProxyWidget *_module;
 
60
        QVBoxLayout *_embedLayout;
 
61
        KVBox *_embedFrame;
 
62
 
 
63
};
 
64
 
 
65
class ConfigModuleList : public QList<ConfigModule*> {
 
66
public:
 
67
 
 
68
        ConfigModuleList();
 
69
 
 
70
        bool readDesktopEntries();
 
71
 
 
72
};
 
73
 
 
74
#endif