diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_database.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_database.html Tue Mar 30 11:56:28 2010 +0100 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_database.html Tue Mar 30 16:16:55 2010 +0100 @@ -1,257 +1,242 @@ - - -TB10.1 Example Applications: CDatabase Class Reference - - - - + + + + +TB9.2 Example Applications: CDatabase Class Reference + + + + + +

CDatabase Class Reference

-

-List of all members. - - - - - - - - - +

List of all members.

+

Public Member Functions

virtual ~CDatabase ()
void CreateDatabaseL ()
void ReadfromDatabaseL ()
void WritetoDatabaseL ()
+ + + + + + + + + + + + + +

Public Member Functions

virtual ~CDatabase ()
void CreateDatabaseL ()
void ReadfromDatabaseL ()
void WritetoDatabaseL ()
void PeriodicReadFuncL ()
void PeriodicWriteFuncL ()

Static Public Member Functions

static CDatabaseNewL ()
static TInt PeriodicReadL (TAny *aPtr)
static TInt PeriodicWriteL (TAny *aPtr)

Protected Member Functions

void ConstructL ()
+


Detailed Description

+

This is a database class which is used by two different threads to demonstrate thread synchronization using a semaphore.

-void PeriodicReadFuncL () - -void PeriodicWriteFuncL () - -

Static Public Member Functions

-static CDatabaseNewL () - -static TInt PeriodicReadL (TAny *aPtr) - -static TInt PeriodicWriteL (TAny *aPtr) - -

Protected Member Functions

-void ConstructL () - - -

Detailed Description

-This is a database class which is used by two different threads to demonstrate thread synchronization using a semaphore. -

Definition at line 28 of file CDatabase.h.

-

Constructor & Destructor Documentation

- +

Definition at line 28 of file CDatabase.h.

+

Constructor & Destructor Documentation

+
- + - + - +
CDatabase::~CDatabase CDatabase::~CDatabase (  )  [virtual] [virtual]
+

Destructor

-

-Destructor -

Definition at line 41 of file CDatabase.cpp.

+

Definition at line 41 of file CDatabase.cpp.

-

-


Member Function Documentation

- +
+

Member Function Documentation

+
- + - + - +
CDatabase * CDatabase::NewL CDatabase * CDatabase::NewL (  )  [static] [static]
+

NewL()

-

-NewL() -

Definition at line 29 of file CDatabase.cpp.

+

Definition at line 29 of file CDatabase.cpp.

-

- + +

- + - + - +
void CDatabase::CreateDatabaseL void CDatabase::CreateDatabaseL (  ) 
+

Creates database in the store and create a table and add columns to it.

-

-Creates database in the store and create a table and add columns to it. -

Definition at line 79 of file CDatabase.cpp.

+

Definition at line 79 of file CDatabase.cpp.

-

- + +

- + - + - +
void CDatabase::ReadfromDatabaseL void CDatabase::ReadfromDatabaseL (  ) 
+

This function is called by the ReaderThread in SemaphoreExample. It creates a console to display the data read from the database and starts a periodic function to read the database at an interval of 1 second.

-

-This function is called by the ReaderThread in SemaphoreExample. It creates a console to display the data read from the database and starts a periodic function to read the database at an interval of 1 second. -

Definition at line 220 of file CDatabase.cpp.

+

Definition at line 220 of file CDatabase.cpp.

-

- + +

- + - + - +
void CDatabase::WritetoDatabaseL void CDatabase::WritetoDatabaseL (  ) 
+

This function is called by the WriteThread in the SemaphoreExample and it starts a periodic function to write data in the database at an interval of 1 sec.

-

-This function is called by the WriteThread in the SemaphoreExample and it starts a periodic function to write data in the database at an interval of 1 sec. -

Definition at line 135 of file CDatabase.cpp.

+

Definition at line 135 of file CDatabase.cpp.

-

- + +

- + - + - +
TInt CDatabase::PeriodicReadL TInt CDatabase::PeriodicReadL ( TAny *  aPtr aPtr  )  [static] [static]
+

The call back function associated with the CPeriodic object of the CDatabase class and is called by the ReadfromDatabaseL() function.

-

-The call back function associated with the CPeriodic object of the CDatabase class and is called by the ReadfromDatabaseL() function. -

Definition at line 237 of file CDatabase.cpp.

+

Definition at line 237 of file CDatabase.cpp.

-

- + +

- + - + - +
void CDatabase::PeriodicReadFuncL void CDatabase::PeriodicReadFuncL (  ) 
+

This function is called periodically at an interval of 1 second, it opens the database , reads one row and displays the numbers to the console.

-

-This function is called periodically at an interval of 1 second, it opens the database , reads one row and displays the numbers to the console. -

Definition at line 248 of file CDatabase.cpp.

+

Definition at line 248 of file CDatabase.cpp.

-

- + +

- + - + - +
TInt CDatabase::PeriodicWriteL TInt CDatabase::PeriodicWriteL ( TAny *  aPtr aPtr  )  [static] [static]
+

The call back function associated with the CPeriodic object of the CDatabase class and is called by the WritetoDatabaseL() function.

-

-The call back function associated with the CPeriodic object of the CDatabase class and is called by the WritetoDatabaseL() function. -

Definition at line 145 of file CDatabase.cpp.

+

Definition at line 145 of file CDatabase.cpp.

-

- + +

- + - + - +
void CDatabase::PeriodicWriteFuncL void CDatabase::PeriodicWriteFuncL (  ) 
+

This function is called periodically at an interval of 1 sec, it opens the database, inserts one row and fills it with integer values.

-

-This function is called periodically at an interval of 1 sec, it opens the database, inserts one row and fills it with integer values. -

Definition at line 157 of file CDatabase.cpp.

+

Definition at line 157 of file CDatabase.cpp.

-

- + +

- + - + - +
void CDatabase::ConstructL void CDatabase::ConstructL (  )  [protected] [protected]
+

Constructs a CPeriodic object, a database , opens the global semaphore.

-

-Constructs a CPeriodic object, a database , opens the global semaphore. -

Definition at line 54 of file CDatabase.cpp.

+

Definition at line 54 of file CDatabase.cpp.

-

-


Generated on Thu Jan 21 10:33:04 2010 for TB10.1 Example Applications by  + + +
Generated by  -doxygen 1.5.3
+doxygen 1.6.2