Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

swapfile.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 
00021 #ifndef SWAPFILE_H
00022 #define SWAPFILE_H
00023 
00024 #include <qwidget.h>
00025 
00026 class QLabel;
00027 class QRadioButton;
00028 class QLineEdit;
00029 class QComboBox;
00030 class QProgressBar;
00031 
00032 class Swapfile : public QWidget
00033 {
00034     Q_OBJECT
00035 public:
00036     Swapfile( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
00037     ~Swapfile();
00038 
00039 private slots:
00040         void swapon();
00041         void swapoff();
00042         void cfsdchecked();
00043         void makeswapfile();
00044         void removeswapfile();
00045         void cardnotify( const QCString &msg, const QByteArray & );
00046         void getStatusPcmcia();
00047         void getStatusSd();
00048         void status();
00049 
00050 private:
00051         bool cardInPcmcia0;
00052     bool cardInPcmcia1;
00053         bool cardInSd;
00054 
00055         QRadioButton* ramRB;
00056         QRadioButton* cfRB;
00057         QRadioButton* sdRB;
00058         QLineEdit* swapPath1;
00059         QLabel* swapStatus;
00060         QLabel* swapStatusIcon;
00061         QComboBox* swapSize;
00062         QProgressBar* mkswapProgress;
00063 
00064         bool isRoot;
00065 
00066         int exec(const QString& arg);
00067         void setStatusMessage(const QString& text, bool error = false);
00068 };
00069 
00070 #endif

Generated on Sat Nov 5 16:16:44 2005 for OPIE by  doxygen 1.4.2