Click here to Skip to main content
15,887,585 members
Articles / Programming Languages / C++

QServiceTool - A Beginner's Guide to Qt and NT Services

Rate me:
Please Sign up or sign in to vote.
4.91/5 (13 votes)
18 May 2003CPOL6 min read 120.7K   1.1K   27  
A Qt based tool designed to control Windows NT services (start, stop, pause, continue) and to show information about them.
/****************************************************************************
** QServiceTool meta object code from reading C++ file 'QServiceTool.h'
**
** Created: Mon May 19 20:17:28 2003
**      by: The Qt MOC ($Id: //depot/qt/main/src/moc/moc.y#178 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#define Q_MOC_QServiceTool
#if !defined(Q_MOC_OUTPUT_REVISION)
#define Q_MOC_OUTPUT_REVISION 8
#elif Q_MOC_OUTPUT_REVISION != 8
#error "Moc format conflict - please regenerate all moc files"
#endif

#include "QServiceTool.h"
#include <qmetaobject.h>
#include <qapplication.h>

#if defined(Q_SPARCWORKS_FUNCP_BUG)
#define Q_AMPERSAND
#else
#define Q_AMPERSAND &
#endif


const char *QServiceTool::className() const
{
    return "QServiceTool";
}

QMetaObject *QServiceTool::metaObj = 0;

void QServiceTool::initMetaObject()
{
    if ( metaObj )
	return;
    if ( strcmp(QWidget::className(), "QWidget") != 0 )
	badSuperclassWarning("QServiceTool","QWidget");
    (void) staticMetaObject();
}

#ifndef QT_NO_TRANSLATION
QString QServiceTool::tr(const char* s)
{
    return ((QNonBaseApplication*)qApp)->translate("QServiceTool",s);
}

#endif // QT_NO_TRANSLATION
QMetaObject* QServiceTool::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    (void) QWidget::staticMetaObject();
#ifndef QT_NO_PROPERTIES
#endif // QT_NO_PROPERTIES
    typedef void(QServiceTool::*m1_t0)();
    typedef void(QServiceTool::*m1_t1)();
    typedef void(QServiceTool::*m1_t2)();
    typedef void(QServiceTool::*m1_t3)();
    typedef void(QServiceTool::*m1_t4)(int);
    typedef void(QServiceTool::*m1_t5)();
    typedef void(QServiceTool::*m1_t6)(QString);
    m1_t0 v1_0 = Q_AMPERSAND QServiceTool::startService;
    m1_t1 v1_1 = Q_AMPERSAND QServiceTool::stopService;
    m1_t2 v1_2 = Q_AMPERSAND QServiceTool::pauseService;
    m1_t3 v1_3 = Q_AMPERSAND QServiceTool::continueService;
    m1_t4 v1_4 = Q_AMPERSAND QServiceTool::infoService;
    m1_t5 v1_5 = Q_AMPERSAND QServiceTool::infoService;
    m1_t6 v1_6 = Q_AMPERSAND QServiceTool::appendText;
    QMetaData *slot_tbl = QMetaObject::new_metadata(7);
    QMetaData::Access *slot_tbl_access = QMetaObject::new_metaaccess(7);
    slot_tbl[0].name = "startService()";
    slot_tbl[0].ptr = *((QMember*)&v1_0);
    slot_tbl_access[0] = QMetaData::Public;
    slot_tbl[1].name = "stopService()";
    slot_tbl[1].ptr = *((QMember*)&v1_1);
    slot_tbl_access[1] = QMetaData::Public;
    slot_tbl[2].name = "pauseService()";
    slot_tbl[2].ptr = *((QMember*)&v1_2);
    slot_tbl_access[2] = QMetaData::Public;
    slot_tbl[3].name = "continueService()";
    slot_tbl[3].ptr = *((QMember*)&v1_3);
    slot_tbl_access[3] = QMetaData::Public;
    slot_tbl[4].name = "infoService(int)";
    slot_tbl[4].ptr = *((QMember*)&v1_4);
    slot_tbl_access[4] = QMetaData::Public;
    slot_tbl[5].name = "infoService()";
    slot_tbl[5].ptr = *((QMember*)&v1_5);
    slot_tbl_access[5] = QMetaData::Public;
    slot_tbl[6].name = "appendText(QString)";
    slot_tbl[6].ptr = *((QMember*)&v1_6);
    slot_tbl_access[6] = QMetaData::Public;
    metaObj = QMetaObject::new_metaobject(
	"QServiceTool", "QWidget",
	slot_tbl, 7,
	0, 0,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    metaObj->set_slot_access( slot_tbl_access );
#ifndef QT_NO_PROPERTIES
#endif // QT_NO_PROPERTIES
    return metaObj;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions