~ubuntu-branches/ubuntu/maverick/knemo/maverick

« back to all changes in this revision

Viewing changes to src/kcm/configdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-01-06 17:16:51 UTC
  • mfrom: (1.1.9 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100106171651-ff58ryfnav4l1zbm
Tags: 0.6.0-1
* New upstream release 
  - Fixes "FTBFS: sysbackend.cpp:362: error: 'KILO' was not declared in
  this scope" (Closes: #560496)
  - Fixes "context menu does not appear" (Closes: #504791)
* Add Build-Depends: libnl-dev - Linux netlink sockets library

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef CONFIGDIALOG_H
22
22
#define CONFIGDIALOG_H
23
23
 
24
 
#include <kcmodule.h>
 
24
#include <KCModule>
25
25
 
26
26
#include "data.h"
27
27
#include "ui_configdlg.h"
28
28
 
29
 
class QStandardItem;
30
 
class QStandardItemModel;
31
 
class QTimer;
32
29
class QTreeWidgetItem;
 
30
class KCalendarSystem;
33
31
 
34
32
/**
35
33
 * This is the configuration dialog for KNemo
72
70
    void buttonNotificationsSelected();
73
71
    void interfaceSelected( int row );
74
72
    void aliasChanged( const QString& text );
75
 
    void iconSetChanged( int set );
76
 
    void backendChanged( int set );
77
 
    void checkBoxNotConnectedToggled( bool on );
78
 
    void checkBoxNotExistingToggled( bool on );
 
73
    void iconThemeChanged( int set );
 
74
    void checkBoxDisconnectedToggled( bool on );
 
75
    void checkBoxUnavailableToggled( bool on );
79
76
    void checkBoxStatisticsToggled( bool on );
 
77
    void checkBoxCustomBillingToggled( bool on );
 
78
    void warnThresholdChanged( double val );
 
79
    void warnRxTxToggled( bool on );
 
80
    void billingStartInputChanged( const QDate& );
 
81
    void billingMonthsInputChanged( int value );
80
82
    void checkBoxStartKNemoToggled( bool on );
81
83
    void spinBoxTrafficValueChanged( int value );
82
84
    void checkBoxCustomToggled( bool on );
 
85
    void colorButtonChanged();
83
86
    void listViewCommandsSelectionChanged( QTreeWidgetItem *current, QTreeWidgetItem *previous );
84
87
    void listViewCommandsChanged( QTreeWidgetItem* item, int column );
85
 
 
86
 
    /**
87
 
     * These three are generic.
88
 
     * They are used for all plotter settings to activate the
89
 
     * 'Apply' button when something was changed by the user.
90
 
     */
91
 
    void checkBoxToggled( bool );
92
 
    void spinBoxValueChanged( int );
93
 
    void kColorButtonChanged( const QColor& );
 
88
    void moveTips( QListWidget *from, QListWidget *to );
94
89
 
95
90
private:
 
91
    void setMaxDay();
96
92
    void setupToolTipTab();
97
 
    void setupToolTipArray();
98
 
    void updateStatisticsEntries( void );
99
 
 
100
 
    enum IconSet
101
 
    {
102
 
        MONITOR = 0,
103
 
        MODEM,
104
 
        NETWORK,
105
 
        WIRELESS
106
 
    };
 
93
    void setupToolTipMap();
 
94
    void updateControls( InterfaceSettings *settings );
 
95
    InterfaceSettings * getItemSettings();
 
96
    int findIndexFromName( const QString& internalName );
 
97
    QString findNameFromIndex( int index );
 
98
    QPixmap textIcon( QString incomingText, QString outgoingText, int status );
107
99
 
108
100
    int mToolTipContent;
109
101
    bool mLock;
110
102
    Ui::ConfigDlg* mDlg;
111
 
    QColor mColorVLines;
112
 
    QColor mColorHLines;
113
 
    QColor mColorIncoming;
114
 
    QColor mColorOutgoing;
115
 
    QColor mColorBackground;
 
103
    const KCalendarSystem* mCalendar;
 
104
    int mMaxDay;
 
105
 
 
106
    // Delete this once KCalendarSystem fixed
 
107
    QString mDefaultCalendarType;
 
108
 
116
109
    KSharedConfigPtr mConfig;
117
110
    QMap<QString, InterfaceSettings *> mSettingsMap;
118
111
    QMap<quint32, QString> mToolTips;
119
112
    QList<QString> mDeletedIfaces;
120
 
    QStringList mIconSets;
121
 
 
122
 
    static const QString ICON_DISCONNECTED;
123
 
    static const QString ICON_CONNECTED;
124
 
    static const QString ICON_INCOMING;
125
 
    static const QString ICON_OUTGOING;
126
 
    static const QString ICON_TRAFFIC;
127
113
};
128
114
 
129
115
#endif // CONFIGDIALOG_H