~ubuntu-branches/ubuntu/karmic/knemo/karmic

« back to all changes in this revision

Viewing changes to src/knemod/interfacestatusdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-02-24 13:22:11 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090224132211-6j5kcok463v3rye3
Tags: 0.5.0-0ubuntu1
* New upstream release
* Packaging ported to KDE4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* This file is part of KNemo
2
2
   Copyright (C) 2004, 2006 Percy Leonhardt <percy@eris23.de>
 
3
   Copyright (C) 2009 John Stamp <jstamp@users.sourceforge.net>
3
4
 
4
5
   KNemo is free software; you can redistribute it and/or modify
5
6
   it under the terms of the GNU Library General Public License as
20
21
#ifndef INTERFACESTATUSDIALOG_H
21
22
#define INTERFACESTATUSDIALOG_H
22
23
 
23
 
#include <qwidget.h>
24
 
 
25
 
#include "interfacestatusdlg.h"
26
 
 
27
 
class QTimer;
 
24
#include <KDialog>
 
25
 
 
26
#include "ui_interfacestatusdlg.h"
 
27
 
28
28
class Interface;
29
29
 
30
30
/**
35
35
 * @author Percy Leonhardt <percy@eris23.de>
36
36
 */
37
37
 
38
 
class InterfaceStatusDialog : public InterfaceStatusDlg
 
38
class InterfaceStatusDialog : public KDialog
39
39
{
40
40
    Q_OBJECT
41
41
public:
43
43
     * Default Constructor
44
44
     */
45
45
    InterfaceStatusDialog( Interface* interface,
46
 
                           QWidget* parent = 0L, const char* name = 0L );
 
46
                           QWidget* parent = 0L );
47
47
 
48
48
    /**
49
49
     * Default Destructor
51
51
    virtual ~InterfaceStatusDialog();
52
52
 
53
53
    /**
54
 
     * Implemented to store position.
55
 
     */
56
 
    void hide();
57
 
    void show();
58
 
 
59
 
    /**
60
54
     * Enable or disable the statistics group when the user turned statistics on or off.
61
55
     */
62
56
    void setStatisticsGroupEnabled( bool enabled );
74
68
     * Update the statistics tab when data changed
75
69
     */
76
70
    void statisticsChanged();
77
 
 
78
 
private slots:
79
71
    void updateDialog();
80
72
 
 
73
protected:
 
74
    bool event( QEvent *e );
 
75
 
81
76
private:
82
 
    QPoint mPos;
83
 
    bool mPosInitialized;
 
77
    Ui::InterfaceStatusDlg ui;
 
78
    QByteArray mGeometry;
84
79
 
85
 
    QTimer* mTimer;
 
80
    KSharedConfigPtr mConfig;
86
81
    Interface* mInterface;
87
82
};
88
83