bbobd-win32.h File Reference

#include <QtGlobal>
#include <QString>
#include <QSettings>
#include "windows.h"
#include "winsvc.h"
#include "bbobdThread.h"

Include dependency graph for bbobd-win32.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MSG_FLAGS_ERROR   (1<<0)
#define MSG_FLAGS_SYS_CODE   (1<<1)
#define DISPLAY_MSG   100

Functions

void myMessageOutput (QtMsgType type, const char *msg)
 Custon handling of application messages.
void WINAPI ServiceMain (DWORD argc, LPTSTR *argv)
void WINAPI ServiceCtrlHandler (DWORD Opcode)
void AddToMessageLog (WORD wType, char *pszFormat,...)
BOOL InstallService ()
BOOL DeleteService ()
BOOL StartService ()
BOOL StopService ()
void wtoc (char *Dest, TCHAR *Source, int SourceSize)
void ctow (TCHAR *Dest, char *Source)
void usage ()

Variables

QString Args
WCHAR * name
QString desc


Define Documentation

#define DISPLAY_MSG   100

Definition at line 19 of file bbobd-win32.h.

Referenced by AddToMessageLog().

#define MSG_FLAGS_ERROR   (1<<0)

Definition at line 17 of file bbobd-win32.h.

#define MSG_FLAGS_SYS_CODE   (1<<1)

Definition at line 18 of file bbobd-win32.h.


Function Documentation

void AddToMessageLog ( WORD  wType,
char *  pszFormat,
  ... 
)

Definition at line 96 of file bbobd-win32.cpp.

References ctow(), DISPLAY_MSG, and name.

Here is the call graph for this function:

void ctow ( TCHAR *  Dest,
char *  Source 
)

Definition at line 384 of file bbobd-win32.cpp.

BOOL DeleteService (  ) 

Definition at line 235 of file bbobd-win32.cpp.

References DeleteService(), name, and QSettings::remove().

Here is the call graph for this function:

BOOL InstallService (  ) 

Definition at line 160 of file bbobd-win32.cpp.

References name, QSettings::setValue(), and wtoc().

Here is the call graph for this function:

void myMessageOutput ( QtMsgType  type,
const char *  msg 
)

Custon handling of application messages.

Custom handling of application messages.

Special handling of messages like qWarning(), qDebug(), qCritical(), and qFatal()

Custom handling of application messages.

Special handling of messages like qWarning(), qDebug(), qCritical(), and qFatal()

Special handling of messages like qWarning(), qDebug(), qCritical(), and qFatal()

Definition at line 13 of file bbobd-unix.cpp.

void WINAPI ServiceCtrlHandler ( DWORD  Opcode  ) 

Definition at line 130 of file bbobd-win32.cpp.

References m_ServiceStatus, and m_ServiceStatusHandle.

void WINAPI ServiceMain ( DWORD  argc,
LPTSTR *  argv 
)

Definition at line 64 of file bbobd-win32.cpp.

References Args, m_ServiceStatus, m_ServiceStatusHandle, name, ServiceCtrlHandler(), QThread::start(), and QThread::wait().

Here is the call graph for this function:

BOOL StartService (  ) 

Definition at line 276 of file bbobd-win32.cpp.

References name, and StartService().

Here is the call graph for this function:

BOOL StopService (  ) 

Definition at line 325 of file bbobd-win32.cpp.

References name.

void usage (  ) 

Definition at line 17 of file bbobd-win32.cpp.

void wtoc ( char *  Dest,
TCHAR *  Source,
int  SourceSize 
)

Definition at line 375 of file bbobd-win32.cpp.


Variable Documentation

QString Args

Definition at line 3 of file bbobd.cpp.

QString desc

Definition at line 5 of file bbobd-win32.cpp.

WCHAR* name

Definition at line 4 of file bbobd-win32.cpp.


Generated on Sun Oct 28 22:51:30 2007 for BBoB by  doxygen 1.5.3