~ubuntu-branches/ubuntu/feisty/kdetv/feisty

« back to all changes in this revision

Viewing changes to kdetv/libkdetv/miscmanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-09-17 23:25:16 UTC
  • Revision ID: james.westby@ubuntu.com-20050917232516-9wdsn3ckagbqieh8
Tags: upstream-0.8.8
ImportĀ upstreamĀ versionĀ 0.8.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 * Copyright (C) 2002 George Staikos <staikos@kde.org>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Library General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library 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 GNU
 
13
 * Library General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public License
 
16
 * along with this library; see the file COPYING.LIB.  If not, write to
 
17
 * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
 
18
 * Boston, MA 02110-1301, USA.
 
19
 */
 
20
 
 
21
 
 
22
 
 
23
#ifndef _MISCMANAGER_H
 
24
#define _MISCMANAGER_H
 
25
 
 
26
#include <qobject.h>
 
27
#include <qptrlist.h>
 
28
 
 
29
class KdetvMiscPlugin;
 
30
class PluginFactory;
 
31
class QWidget;
 
32
 
 
33
class MiscManager : public QObject
 
34
{
 
35
    Q_OBJECT
 
36
 
 
37
public:
 
38
    bool filterNumberKey(int key);
 
39
 
 
40
public slots:
 
41
    void scanPlugins();
 
42
 
 
43
protected:
 
44
    friend class Kdetv;
 
45
    MiscManager(PluginFactory*, QWidget*);
 
46
    ~MiscManager();
 
47
 
 
48
    void setScreen(QWidget* screen);
 
49
 
 
50
private:
 
51
    QPtrList<KdetvMiscPlugin> _plugs;
 
52
    QWidget* _view;
 
53
    PluginFactory* _pf;
 
54
};
 
55
 
 
56
#endif