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

Swapfile Class Reference

#include </home/clem/local/src/opie/noncore/applets/memoryapplet/swapfile.h>

List of all members.

Public Member Functions

 Swapfile (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~Swapfile ()

Private Slots

void swapon ()
void swapoff ()
void cfsdchecked ()
void makeswapfile ()
void removeswapfile ()
void cardnotify (const QCString &msg, const QByteArray &)
void getStatusPcmcia ()
void getStatusSd ()
void status ()

Private Member Functions

int exec (const QString &arg)
void setStatusMessage (const QString &text, bool error=false)

Private Attributes

bool cardInPcmcia0
bool cardInPcmcia1
bool cardInSd
QRadioButton * ramRB
QRadioButton * cfRB
QRadioButton * sdRB
QLineEdit * swapPath1
QLabel * swapStatus
QLabel * swapStatusIcon
QComboBox * swapSize
QProgressBar * mkswapProgress
bool isRoot


Constructor & Destructor Documentation

Swapfile::Swapfile QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 57 of file swapfile.cpp.

References cardInPcmcia0, cardInPcmcia1, cardInSd, cardnotify(), cfRB, cfsdchecked(), QFile::exists(), FALSE, getStatusPcmcia(), getStatusSd(), isRoot, makeswapfile(), mkswapProgress, ramRB, removeswapfile(), sdRB, QStringList::split(), status(), swapoff(), swapon(), swapPath1, swapSize, swapStatus, swapStatusIcon, text, and tr.

Swapfile::~Swapfile  ) 
 

Definition at line 143 of file swapfile.cpp.


Member Function Documentation

void Swapfile::cardnotify const QCString msg,
const QByteArray
[private, slot]
 

Definition at line 147 of file swapfile.cpp.

References getStatusPcmcia(), and getStatusSd().

Referenced by Swapfile().

void Swapfile::cfsdchecked  )  [private, slot]
 

Definition at line 319 of file swapfile.cpp.

References cfRB, ramRB, sdRB, swapPath1, and TRUE.

Referenced by getStatusPcmcia(), getStatusSd(), removeswapfile(), status(), Swapfile(), swapoff(), and swapon().

int Swapfile::exec const QString arg  )  [private]
 

Definition at line 137 of file swapfile.cpp.

References isRoot.

Referenced by makeswapfile(), removeswapfile(), swapoff(), and swapon().

void Swapfile::getStatusPcmcia  )  [private, slot]
 

Definition at line 159 of file swapfile.cpp.

References QValueList< T >::begin(), cardInPcmcia0, cardInPcmcia1, cfRB, cfsdchecked(), QValueList< T >::end(), QFile::exists(), f, FALSE, IO_ReadOnly, list, QString::null, odebug, oendl, QFile::open(), QTextStream::read(), QStringList::split(), stream, text, and TRUE.

Referenced by cardnotify(), and Swapfile().

void Swapfile::getStatusSd  )  [private, slot]
 

Definition at line 235 of file swapfile.cpp.

References cardInSd, cfsdchecked(), FALSE, QString::left(), QString::null, sdRB, text, and TRUE.

Referenced by cardnotify(), and Swapfile().

void Swapfile::makeswapfile  )  [private, slot]
 

Definition at line 338 of file swapfile.cpp.

References exec(), i, mkswapProgress, rc, setStatusMessage(), swapPath1, swapSize, and tr.

Referenced by Swapfile().

void Swapfile::removeswapfile  )  [private, slot]
 

Definition at line 374 of file swapfile.cpp.

References cfsdchecked(), exec(), rc, setStatusMessage(), status(), swapPath1, and tr.

Referenced by Swapfile().

void Swapfile::setStatusMessage const QString text,
bool  error = false
[private]
 

Definition at line 293 of file swapfile.cpp.

References Opie::Core::OResource::loadPixmap(), Opie::Core::OResource::SmallIcon, swapStatus, and swapStatusIcon.

Referenced by makeswapfile(), removeswapfile(), status(), swapoff(), and swapon().

void Swapfile::status  )  [private, slot]
 

Definition at line 386 of file swapfile.cpp.

References cfRB, cfsdchecked(), FALSE, i, NULL, ramRB, sdRB, setStatusMessage(), swapSize, tr, and TRUE.

Referenced by removeswapfile(), Swapfile(), swapoff(), and swapon().

void Swapfile::swapoff  )  [private, slot]
 

Definition at line 300 of file swapfile.cpp.

References cfRB, cfsdchecked(), exec(), rc, setStatusMessage(), status(), swapPath1, tr, and TRUE.

Referenced by Swapfile().

void Swapfile::swapon  )  [private, slot]
 

Definition at line 275 of file swapfile.cpp.

References cfsdchecked(), exec(), rc, setStatusMessage(), status(), and swapPath1.

Referenced by Swapfile().


Member Data Documentation

bool Swapfile::cardInPcmcia0 [private]
 

Definition at line 51 of file swapfile.h.

Referenced by getStatusPcmcia(), and Swapfile().

bool Swapfile::cardInPcmcia1 [private]
 

Definition at line 52 of file swapfile.h.

Referenced by getStatusPcmcia(), and Swapfile().

bool Swapfile::cardInSd [private]
 

Definition at line 53 of file swapfile.h.

Referenced by getStatusSd(), and Swapfile().

QRadioButton* Swapfile::cfRB [private]
 

Definition at line 56 of file swapfile.h.

Referenced by cfsdchecked(), getStatusPcmcia(), status(), Swapfile(), and swapoff().

bool Swapfile::isRoot [private]
 

Definition at line 64 of file swapfile.h.

Referenced by exec(), and Swapfile().

QProgressBar* Swapfile::mkswapProgress [private]
 

Definition at line 62 of file swapfile.h.

Referenced by makeswapfile(), and Swapfile().

QRadioButton* Swapfile::ramRB [private]
 

Definition at line 55 of file swapfile.h.

Referenced by cfsdchecked(), status(), and Swapfile().

QRadioButton* Swapfile::sdRB [private]
 

Definition at line 57 of file swapfile.h.

Referenced by cfsdchecked(), getStatusSd(), status(), and Swapfile().

QLineEdit* Swapfile::swapPath1 [private]
 

Definition at line 58 of file swapfile.h.

Referenced by cfsdchecked(), makeswapfile(), removeswapfile(), Swapfile(), swapoff(), and swapon().

QComboBox* Swapfile::swapSize [private]
 

Definition at line 61 of file swapfile.h.

Referenced by makeswapfile(), status(), and Swapfile().

QLabel* Swapfile::swapStatus [private]
 

Definition at line 59 of file swapfile.h.

Referenced by setStatusMessage(), and Swapfile().

QLabel* Swapfile::swapStatusIcon [private]
 

Definition at line 60 of file swapfile.h.

Referenced by setStatusMessage(), and Swapfile().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:52:49 2005 for OPIE by  doxygen 1.4.2