~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to plasma/generic/runners/kill/killrunner_config.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2009  <Jan Gerrit Marker> <jangerrit@weiler-marker.com>
 
2
 *
 
3
 * This library is free software; you can redistribute it and/or
 
4
 * modify it under the terms of the GNU Lesser General Public
 
5
 * License as published by the Free Software Foundation; either
 
6
 * version 2.1 of the License, or (at your option) version 3, or any
 
7
 * later version accepted by the membership of KDE e.V. (or its
 
8
 * successor approved by the membership of KDE e.V.), which shall
 
9
 * act as a proxy defined in Section 6 of version 3 of the license.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef KILLRUNNERCONFIG_H
 
21
#define KILLRUNNERCONFIG_H
 
22
 
 
23
//Project-Includes
 
24
#include "ui_killrunner_config.h"
 
25
//KDE-Includes
 
26
#include <KCModule>
 
27
//Qt
 
28
 
 
29
static const char CONFIG_USE_TRIGGERWORD[] = "useTriggerWord";
 
30
static const char CONFIG_TRIGGERWORD[] = "triggerWord";
 
31
static const char CONFIG_SORTING[] = "sorting";
 
32
 
 
33
class KillRunnerConfigForm : public QWidget, public Ui::KillRunnerConfigUi
 
34
{
 
35
    Q_OBJECT
 
36
 
 
37
public:
 
38
    explicit KillRunnerConfigForm(QWidget* parent);
 
39
};
 
40
 
 
41
class KillRunnerConfig : public KCModule
 
42
{
 
43
    Q_OBJECT
 
44
 
 
45
public:
 
46
    explicit KillRunnerConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
 
47
    
 
48
    /** Possibilities to sort */
 
49
    enum Sort {NONE = 0, CPU, CPUI};
 
50
 
 
51
public slots:
 
52
    void save();
 
53
    void load();
 
54
    void defaults();
 
55
 
 
56
private:
 
57
    KillRunnerConfigForm* m_ui;
 
58
};
 
59
#endif