summaryrefslogtreecommitdiff
path: root/noncore/applets/memoryapplet/swapfile.h
Unidiff
Diffstat (limited to 'noncore/applets/memoryapplet/swapfile.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/memoryapplet/swapfile.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/noncore/applets/memoryapplet/swapfile.h b/noncore/applets/memoryapplet/swapfile.h
new file mode 100644
index 0000000..8a6d25a
--- a/dev/null
+++ b/noncore/applets/memoryapplet/swapfile.h
@@ -0,0 +1,70 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21#ifndef SWAPFILE_H
22#define SWAPFILE_H
23
24#include <qwidget.h>
25
26class QLabel;
27class QRadioButton;
28class QLineEdit;
29class QComboBox;
30class QProgressBar;
31
32class Swapfile : public QWidget
33{
34 Q_OBJECT
35public:
36 Swapfile( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
37 ~Swapfile();
38
39private slots:
40 void swapon();
41 void swapoff();
42 void cfsdchecked();
43 void makeswapfile();
44 void removeswapfile();
45 void cardnotify( const QCString &msg, const QByteArray & );
46 void getStatusPcmcia();
47 void getStatusSd();
48 void status();
49
50private:
51 bool cardInPcmcia0;
52 bool cardInPcmcia1;
53 bool cardInSd;
54
55 QRadioButton* ramRB;
56 QRadioButton* cfRB;
57 QRadioButton* sdRB;
58 QLineEdit* swapPath1;
59 QLabel* swapStatus;
60 QLabel* swapStatusIcon;
61 QComboBox* swapSize;
62 QProgressBar* mkswapProgress;
63
64 bool isRoot;
65
66 int exec(const QString& arg);
67 void setStatusMessage(const QString& text, bool error = false);
68};
69
70#endif