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

Converter Class Reference

#include </home/clem/local/src/opie/noncore/tools/pimconverter/converter.h>

List of all members.

Public Member Functions

 Converter (QWidget *parent, const char *name, WFlags fl)
void start_conversion ()
void start_upgrade ()
void selectedDatabase (int num)
void selectedDestFormat (int num)
void selectedSourceFormat (int num)
void closeEvent (QCloseEvent *e)

Static Public Member Functions

static QString appName ()

Private Types

enum  DataBases { ADDRESSBOOK = 0, TODOLIST = 1, DATEBOOK = 2 }
enum  DbFormats { XML = 0, SQL = 1 }

Private Member Functions

bool sqliteMoveAndConvert (const QString &name, const QString &src, const QString &destination)

Private Attributes

int m_selectedDatabase
int m_selectedSourceFormat
int m_selectedDestFormat
bool m_criticalState


Member Enumeration Documentation

enum Converter::DataBases [private]
 

Enumeration values:
ADDRESSBOOK 
TODOLIST 
DATEBOOK 

Definition at line 27 of file converter.h.

enum Converter::DbFormats [private]
 

Enumeration values:
XML 
SQL 

Definition at line 33 of file converter.h.


Constructor & Destructor Documentation

Converter::Converter QWidget *  parent,
const char *  name,
WFlags  fl
 

Definition at line 27 of file converter.cpp.


Member Function Documentation

static QString Converter::appName void   )  [inline, static]
 

Definition at line 11 of file converter.h.

References QString::fromLatin1().

void Converter::closeEvent QCloseEvent *  e  ) 
 

Definition at line 217 of file converter.cpp.

References m_criticalState.

void Converter::selectedDatabase int  num  ) 
 

Definition at line 40 of file converter.cpp.

References m_selectedDatabase.

void Converter::selectedDestFormat int  num  ) 
 

Definition at line 45 of file converter.cpp.

References m_selectedDestFormat.

void Converter::selectedSourceFormat int  num  ) 
 

Definition at line 50 of file converter.cpp.

References m_selectedSourceFormat.

bool Converter::sqliteMoveAndConvert const QString name,
const QString src,
const QString destination
[private]
 

Definition at line 230 of file converter.cpp.

References error(), QFile::exists(), Global::shellQuote(), and tr.

Referenced by start_upgrade().

void Converter::start_conversion  ) 
 

Definition at line 55 of file converter.cpp.

References add, ADDRESSBOOK, DATEBOOK, QTime::elapsed(), i, m_criticalState, m_selectedDatabase, m_selectedDestFormat, m_selectedSourceFormat, odebug, oendl, owarn, rec, Opie::OPimBase::records(), save(), SQL, QTime::start(), t, TODOLIST, tr, warning(), and XML.

void Converter::start_upgrade  ) 
 

Definition at line 302 of file converter.cpp.

References Global::applicationFileName(), Opie::MM::dest, error(), Escape, odebug, oendl, sqliteMoveAndConvert(), tr, and warning().


Member Data Documentation

bool Converter::m_criticalState [private]
 

Definition at line 41 of file converter.h.

Referenced by closeEvent(), and start_conversion().

int Converter::m_selectedDatabase [private]
 

Definition at line 38 of file converter.h.

Referenced by selectedDatabase(), and start_conversion().

int Converter::m_selectedDestFormat [private]
 

Definition at line 40 of file converter.h.

Referenced by selectedDestFormat(), and start_conversion().

int Converter::m_selectedSourceFormat [private]
 

Definition at line 39 of file converter.h.

Referenced by selectedSourceFormat(), and start_conversion().


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