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

runtests.cpp File Reference

#include <qdir.h>
#include "runtests.h"
#include <ctype.h>
#include <unistd.h>
#include <qmessagebox.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
#include <netinet/in.h>
#include "pppdata.h"

Include dependency graph for runtests.cpp:

Go to the source code of this file.

Defines

#define _PATH_RESCONF   "/etc/resolv.conf"

Functions

const char * pppdPath ()
static void decode_version (const char *_buf, int *version, int *modification, int *patch)
void pppdVersion (int *version, int *modification, int *patch)
int uidFromName (const char *uname)
const char * homedirFromUid (uid_t uid)
const char * getHomeDir ()
int runTests ()

Variables

uid_t euid


Define Documentation

#define _PATH_RESCONF   "/etc/resolv.conf"
 

Definition at line 44 of file runtests.cpp.


Function Documentation

static void decode_version const char *  _buf,
int *  version,
int *  modification,
int *  patch
[static]
 

Definition at line 61 of file runtests.cpp.

References buf, and qstrdup().

Referenced by pppdVersion().

const char* getHomeDir  ) 
 

Definition at line 176 of file runtests.cpp.

References homedirFromUid().

const char* homedirFromUid uid_t  uid  ) 
 

Definition at line 158 of file runtests.cpp.

References d, and NULL.

Referenced by getHomeDir().

const char* pppdPath  ) 
 

Definition at line 71 of file modem.cpp.

References p, PPPDNAME, pppdPath(), and PPPDSEARCHPATH.

Referenced by KPPPWidget::beginConnect(), Modem::execpppd(), pppdPath(), pppdVersion(), runTests(), and InterfacePPP::start().

void pppdVersion int *  version,
int *  modification,
int *  patch
 

Definition at line 92 of file runtests.cpp.

References decode_version(), output, p, pppdPath(), and size.

int runTests  ) 
 

Definition at line 188 of file runtests.cpp.

References _PATH_RESCONF, buf, QFile::encodeName(), f, FALSE, QString::length(), NULL, pppdPath(), s, QString::stripWhiteSpace(), TEST_CRITICAL, TEST_OK, TEST_WARNING, tr, TRUE, uidFromName(), and warning().

Referenced by KPPPWidget::KPPPWidget(), and PPPConfigWidget::PPPConfigWidget().

int uidFromName const char *  uname  ) 
 

Definition at line 141 of file runtests.cpp.

References NULL.

Referenced by runTests().


Variable Documentation

uid_t euid
 


Generated on Sat Nov 5 17:08:18 2005 for OPIE by  doxygen 1.4.2