MMSSwitcherThread Class Reference

#include <mmsswitcherthread.h>

Inheritance diagram for MMSSwitcherThread:

List of all members.


Public Member Functions

 MMSSwitcherThread (MMSSwitcher *sw, MMSLabelWidget *date_s, MMSLabelWidget *time_s, MMSLabelWidget *date_p, MMSLabelWidget *time_p)
 Constructor of main thread.
 MMSSwitcherThread (MMSSwitcher *sw)
 Constructor for plugin specific access to switcher.
void invokeShowPreview ()
void previewShown ()

Private Member Functions

void threadMain ()
 Virtual main method for the thread.

Private Attributes

int mode
 mode of the thread, 0: main thread, 1: show preview thread
MMSMutex lock
string curr_date
string curr_time
MMSSwitchersw
MMSLabel * date_s
MMSLabel * time_s
MMSLabel * date_p
MMSLabel * time_p
unsigned int sleepcnt
int invoke_plugin
unsigned int plugin_invoked
MMSSwitcherThreadmy_spt
bool preview_shown

Detailed Description

Definition at line 41 of file mmsswitcherthread.h.


Constructor & Destructor Documentation

MMSSwitcherThread::MMSSwitcherThread ( MMSSwitcher sw,
MMSLabelWidget date_s,
MMSLabelWidget time_s,
MMSLabelWidget date_p,
MMSLabelWidget time_p 
)

Constructor of main thread.

Definition at line 39 of file mmsswitcherthread.cpp.

MMSSwitcherThread::MMSSwitcherThread ( MMSSwitcher sw  ) 

Constructor for plugin specific access to switcher.

This instance is used for the show preview method of the plugins.

Definition at line 62 of file mmsswitcherthread.cpp.


Member Function Documentation

void MMSSwitcherThread::threadMain (  )  [private, virtual]

Virtual main method for the thread.

This virtual method is empty and have to be setup with code by a derived class. The MMSThread class is only the base class and cannot be constructed.

Implements MMSThread.

Definition at line 88 of file mmsswitcherthread.cpp.

void MMSSwitcherThread::invokeShowPreview (  ) 

Definition at line 67 of file mmsswitcherthread.cpp.

void MMSSwitcherThread::previewShown (  ) 

Definition at line 84 of file mmsswitcherthread.cpp.


Member Data Documentation

int MMSSwitcherThread::mode [private]

mode of the thread, 0: main thread, 1: show preview thread

Definition at line 43 of file mmsswitcherthread.h.

Definition at line 45 of file mmsswitcherthread.h.

string MMSSwitcherThread::curr_date [private]

Definition at line 47 of file mmsswitcherthread.h.

string MMSSwitcherThread::curr_time [private]

Definition at line 48 of file mmsswitcherthread.h.

Definition at line 50 of file mmsswitcherthread.h.

MMSLabel* MMSSwitcherThread::date_s [private]

Definition at line 51 of file mmsswitcherthread.h.

MMSLabel* MMSSwitcherThread::time_s [private]

Definition at line 52 of file mmsswitcherthread.h.

MMSLabel* MMSSwitcherThread::date_p [private]

Definition at line 53 of file mmsswitcherthread.h.

MMSLabel* MMSSwitcherThread::time_p [private]

Definition at line 54 of file mmsswitcherthread.h.

unsigned int MMSSwitcherThread::sleepcnt [private]

Definition at line 56 of file mmsswitcherthread.h.

Definition at line 58 of file mmsswitcherthread.h.

unsigned int MMSSwitcherThread::plugin_invoked [private]

Definition at line 59 of file mmsswitcherthread.h.

Definition at line 60 of file mmsswitcherthread.h.

Definition at line 61 of file mmsswitcherthread.h.


The documentation for this class was generated from the following files: