~ubuntu-branches/ubuntu/natty/knemo/natty

« back to all changes in this revision

Viewing changes to src/kcm/warnconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-02-22 16:36:22 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222163622-d8i62gy1stn7tydv
Tags: 0.7.0-0ubuntu1
* New upstream release.
* Switch to source format 3.0 (quilt).
* Make knemo depend on libqt4-sql-sqlite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of KNemo
 
2
   Copyright (C) 2010 John Stamp <jstamp@users.sourceforge.net>
 
3
 
 
4
   KNemo is free software; you can redistribute it and/or modify
 
5
   it under the terms of the GNU Library General Public License as
 
6
   published by the Free Software Foundation; either version 2 of
 
7
   the License, or (at your option) any later version.
 
8
 
 
9
   KNemo 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 Library General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU Library General Public License
 
15
   along with this library; see the file COPYING.LIB.  If not, write to
 
16
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
   Boston, MA 02110-1301, USA.
 
18
*/
 
19
 
 
20
#ifndef WARNCONFIG_H
 
21
#define WARNCONFIG_H
 
22
 
 
23
#include <KDialog>
 
24
#include "data.h"
 
25
#include "ui_warncfg.h"
 
26
 
 
27
class WarnConfig : public KDialog
 
28
{
 
29
Q_OBJECT
 
30
public:
 
31
    WarnConfig( const InterfaceSettings *settings, const WarnRule &warn, bool addRule = true );
 
32
    WarnRule settings();
 
33
private:
 
34
    Ui::WarnCfg mDlg;
 
35
    const InterfaceSettings *mSettings;
 
36
    bool mAddRule;
 
37
    void setControls( const WarnRule &warn );
 
38
private slots:
 
39
    void setDefaults();
 
40
    void thresholdChanged( double );
 
41
protected:
 
42
    virtual void slotButtonClicked( int button );
 
43
};
 
44
 
 
45
#endif