/****************************************************************************
** PanelButton meta object code from reading C++ file 'panelbutton.h'
**
** Created: Fri Jan 30 08:24:23 2009
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.8   edited Feb 2 14:59 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "panelbutton.h"
#include <qmetaobject.h>
#include <qapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.3.8b. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

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

QMetaObject *PanelButton::metaObj = 0;
static QMetaObjectCleanUp cleanUp_PanelButton( "PanelButton", &PanelButton::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString PanelButton::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "PanelButton", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString PanelButton::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "PanelButton", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* PanelButton::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QButton::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ "enable", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_0 = {"setEnabled", 1, param_slot_0 };
    static const QUParameter param_slot_1[] = {
	{ "o", &static_QUType_ptr, "Orientation", QUParameter::In }
    };
    static const QUMethod slot_1 = {"setOrientation", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ "d", &static_QUType_ptr, "KPanelApplet::Direction", QUParameter::In }
    };
    static const QUMethod slot_2 = {"setPopupDirection", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ "group", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_3 = {"updateIcon", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
	{ "category", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_4 = {"updateSettings", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
	{ "path", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"checkForDeletion", 1, param_slot_5 };
    static const QUMethod slot_6 = {"scheduleForRemoval", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "setEnabled(bool)", &slot_0, QMetaData::Public },
	{ "setOrientation(Orientation)", &slot_1, QMetaData::Public },
	{ "setPopupDirection(KPanelApplet::Direction)", &slot_2, QMetaData::Public },
	{ "updateIcon(int)", &slot_3, QMetaData::Protected },
	{ "updateSettings(int)", &slot_4, QMetaData::Protected },
	{ "checkForDeletion(const QString&)", &slot_5, QMetaData::Protected },
	{ "scheduleForRemoval()", &slot_6, QMetaData::Protected }
    };
    static const QUMethod signal_0 = {"iconChanged", 0, 0 };
    static const QUMethod signal_1 = {"requestSave", 0, 0 };
    static const QUMethod signal_2 = {"removeme", 0, 0 };
    static const QUParameter param_signal_3[] = {
	{ "hide", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod signal_3 = {"hideme", 1, param_signal_3 };
    static const QUParameter param_signal_4[] = {
	{ 0, &static_QUType_varptr, "\x06", QUParameter::In }
    };
    static const QUMethod signal_4 = {"dragme", 1, param_signal_4 };
    static const QUParameter param_signal_5[] = {
	{ 0, &static_QUType_ptr, "KURL::List", QUParameter::In },
	{ 0, &static_QUType_varptr, "\x06", QUParameter::In }
    };
    static const QUMethod signal_5 = {"dragme", 2, param_signal_5 };
    static const QMetaData signal_tbl[] = {
	{ "iconChanged()", &signal_0, QMetaData::Public },
	{ "requestSave()", &signal_1, QMetaData::Public },
	{ "removeme()", &signal_2, QMetaData::Public },
	{ "hideme(bool)", &signal_3, QMetaData::Public },
	{ "dragme(const QPixmap)", &signal_4, QMetaData::Public },
	{ "dragme(const KURL::List,const QPixmap)", &signal_5, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
	"PanelButton", parentObject,
	slot_tbl, 7,
	signal_tbl, 6,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_PanelButton.setMetaObject( metaObj );
    return metaObj;
}

void* PanelButton::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "PanelButton" ) )
	return this;
    if ( !qstrcmp( clname, "KickerTip::Client" ) )
	return (KickerTip::Client*)this;
    return QButton::qt_cast( clname );
}

// SIGNAL iconChanged
void PanelButton::iconChanged()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

// SIGNAL requestSave
void PanelButton::requestSave()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

// SIGNAL removeme
void PanelButton::removeme()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

// SIGNAL hideme
void PanelButton::hideme( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 3, t0 );
}

#include <qobjectdefs.h>
#include <qsignalslotimp.h>

// SIGNAL dragme
void PanelButton::dragme( const QPixmap t0 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 4 );
    if ( !clist )
	return;
    QUObject o[2];
    static_QUType_varptr.set(o+1,&t0);
    activate_signal( clist, o );
}

// SIGNAL dragme
void PanelButton::dragme( const KURL::List t0, const QPixmap t1 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 5 );
    if ( !clist )
	return;
    QUObject o[3];
    static_QUType_ptr.set(o+1,&t0);
    static_QUType_varptr.set(o+2,&t1);
    activate_signal( clist, o );
}

bool PanelButton::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setEnabled((bool)static_QUType_bool.get(_o+1)); break;
    case 1: setOrientation((Orientation)(*((Orientation*)static_QUType_ptr.get(_o+1)))); break;
    case 2: setPopupDirection((KPanelApplet::Direction)(*((KPanelApplet::Direction*)static_QUType_ptr.get(_o+1)))); break;
    case 3: updateIcon((int)static_QUType_int.get(_o+1)); break;
    case 4: updateSettings((int)static_QUType_int.get(_o+1)); break;
    case 5: checkForDeletion((const QString&)static_QUType_QString.get(_o+1)); break;
    case 6: scheduleForRemoval(); break;
    default:
	return QButton::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool PanelButton::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: iconChanged(); break;
    case 1: requestSave(); break;
    case 2: removeme(); break;
    case 3: hideme((bool)static_QUType_bool.get(_o+1)); break;
    case 4: dragme((const QPixmap)(*((const QPixmap*)static_QUType_ptr.get(_o+1)))); break;
    case 5: dragme((const KURL::List)(*((const KURL::List*)static_QUType_ptr.get(_o+1))),(const QPixmap)(*((const QPixmap*)static_QUType_ptr.get(_o+2)))); break;
    default:
	return QButton::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool PanelButton::qt_property( int id, int f, QVariant* v)
{
    return QButton::qt_property( id, f, v);
}

bool PanelButton::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES


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

QMetaObject *PanelPopupButton::metaObj = 0;
static QMetaObjectCleanUp cleanUp_PanelPopupButton( "PanelPopupButton", &PanelPopupButton::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString PanelPopupButton::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "PanelPopupButton", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString PanelPopupButton::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "PanelPopupButton", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* PanelPopupButton::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = PanelButton::staticMetaObject();
    static const QUMethod slot_0 = {"slotExecMenu", 0, 0 };
    static const QUMethod slot_1 = {"menuAboutToHide", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "slotExecMenu()", &slot_0, QMetaData::Protected },
	{ "menuAboutToHide()", &slot_1, QMetaData::Private }
    };
    metaObj = QMetaObject::new_metaobject(
	"PanelPopupButton", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_PanelPopupButton.setMetaObject( metaObj );
    return metaObj;
}

void* PanelPopupButton::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "PanelPopupButton" ) )
	return this;
    return PanelButton::qt_cast( clname );
}

bool PanelPopupButton::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotExecMenu(); break;
    case 1: menuAboutToHide(); break;
    default:
	return PanelButton::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool PanelPopupButton::qt_emit( int _id, QUObject* _o )
{
    return PanelButton::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

bool PanelPopupButton::qt_property( int id, int f, QVariant* v)
{
    return PanelButton::qt_property( id, f, v);
}

bool PanelPopupButton::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
