/****************************************************************************
** KBlog::APIBlog meta object code from reading C++ file 'API_Blog.h'
**
** Created: Fri Jan 30 08:24:24 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 "API_Blog.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 *KBlog::APIBlog::className() const
{
    return "KBlog::APIBlog";
}

QMetaObject *KBlog::APIBlog::metaObj = 0;
static QMetaObjectCleanUp cleanUp_KBlog__APIBlog( "KBlog::APIBlog", &KBlog::APIBlog::staticMetaObject );

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

#endif // QT_NO_TRANSLATION

QMetaObject* KBlog::APIBlog::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QObject::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "job", &static_QUType_ptr, "KIO::Job", QUParameter::In }
    };
    static const QUMethod slot_0 = {"interpretUserInfoJob", 2, param_slot_0 };
    static const QUParameter param_slot_1[] = {
	{ "job", &static_QUType_ptr, "KIO::Job", QUParameter::In }
    };
    static const QUMethod slot_1 = {"interpretListFoldersJob", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "job", &static_QUType_ptr, "KIO::Job", QUParameter::In }
    };
    static const QUMethod slot_2 = {"interpretListItemsJob", 2, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ "job", &static_QUType_ptr, "KIO::Job", QUParameter::In }
    };
    static const QUMethod slot_3 = {"interpretListCategoriesJob", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "job", &static_QUType_ptr, "KIO::Job", QUParameter::In }
    };
    static const QUMethod slot_4 = {"interpretDownloadItemsJob", 2, param_slot_4 };
    static const QUParameter param_slot_5[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "job", &static_QUType_ptr, "KIO::Job", QUParameter::In }
    };
    static const QUMethod slot_5 = {"interpretUploadJob", 2, param_slot_5 };
    static const QUParameter param_slot_6[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "job", &static_QUType_ptr, "KIO::Job", QUParameter::In }
    };
    static const QUMethod slot_6 = {"interpretUploadMediaJob", 2, param_slot_6 };
    static const QMetaData slot_tbl[] = {
	{ "interpretUserInfoJob(KIO::Job*)", &slot_0, QMetaData::Public },
	{ "interpretListFoldersJob(KIO::Job*)", &slot_1, QMetaData::Public },
	{ "interpretListItemsJob(KIO::Job*)", &slot_2, QMetaData::Public },
	{ "interpretListCategoriesJob(KIO::Job*)", &slot_3, QMetaData::Public },
	{ "interpretDownloadItemsJob(KIO::Job*)", &slot_4, QMetaData::Public },
	{ "interpretUploadJob(KIO::Job*)", &slot_5, QMetaData::Public },
	{ "interpretUploadMediaJob(KIO::Job*)", &slot_6, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
	{ "nickname", &static_QUType_QString, 0, QUParameter::In },
	{ "userid", &static_QUType_QString, 0, QUParameter::In },
	{ "email", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod signal_0 = {"userInfoRetrieved", 3, param_signal_0 };
    static const QUParameter param_signal_1[] = {
	{ "id", &static_QUType_QString, 0, QUParameter::In },
	{ "name", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod signal_1 = {"folderInfoRetrieved", 2, param_signal_1 };
    static const QUParameter param_signal_2[] = {
	{ "name", &static_QUType_QString, 0, QUParameter::In },
	{ "description", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod signal_2 = {"categoryInfoRetrieved", 2, param_signal_2 };
    static const QUParameter param_signal_3[] = {
	{ "url", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod signal_3 = {"mediaInfoRetrieved", 1, param_signal_3 };
    static const QUParameter param_signal_4[] = {
	{ "posting", &static_QUType_ptr, "KBlog::BlogPosting", QUParameter::InOut }
    };
    static const QUMethod signal_4 = {"itemOnServer", 1, param_signal_4 };
    static const QUParameter param_signal_5[] = {
	{ "errorMessage", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod signal_5 = {"error", 1, param_signal_5 };
    static const QUParameter param_signal_6[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod signal_6 = {"uploadPostId", 1, param_signal_6 };
    static const QUMethod signal_7 = {"fetchingPostsFinished", 0, 0 };
    static const QUMethod signal_8 = {"fetchingCategoriesFinished", 0, 0 };
    static const QMetaData signal_tbl[] = {
	{ "userInfoRetrieved(const QString&,const QString&,const QString&)", &signal_0, QMetaData::Public },
	{ "folderInfoRetrieved(const QString&,const QString&)", &signal_1, QMetaData::Public },
	{ "categoryInfoRetrieved(const QString&,const QString&)", &signal_2, QMetaData::Public },
	{ "mediaInfoRetrieved(const QString&)", &signal_3, QMetaData::Public },
	{ "itemOnServer(KBlog::BlogPosting&)", &signal_4, QMetaData::Public },
	{ "error(const QString&)", &signal_5, QMetaData::Public },
	{ "uploadPostId(const int)", &signal_6, QMetaData::Public },
	{ "fetchingPostsFinished()", &signal_7, QMetaData::Public },
	{ "fetchingCategoriesFinished()", &signal_8, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
	"KBlog::APIBlog", parentObject,
	slot_tbl, 7,
	signal_tbl, 9,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_KBlog__APIBlog.setMetaObject( metaObj );
    return metaObj;
}

void* KBlog::APIBlog::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "KBlog::APIBlog" ) )
	return this;
    return QObject::qt_cast( clname );
}

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

// SIGNAL userInfoRetrieved
void KBlog::APIBlog::userInfoRetrieved( const QString& t0, const QString& t1, const QString& t2 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    QUObject o[4];
    static_QUType_QString.set(o+1,t0);
    static_QUType_QString.set(o+2,t1);
    static_QUType_QString.set(o+3,t2);
    activate_signal( clist, o );
}

// SIGNAL folderInfoRetrieved
void KBlog::APIBlog::folderInfoRetrieved( const QString& t0, const QString& t1 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
    if ( !clist )
	return;
    QUObject o[3];
    static_QUType_QString.set(o+1,t0);
    static_QUType_QString.set(o+2,t1);
    activate_signal( clist, o );
}

// SIGNAL categoryInfoRetrieved
void KBlog::APIBlog::categoryInfoRetrieved( const QString& t0, const QString& t1 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
    if ( !clist )
	return;
    QUObject o[3];
    static_QUType_QString.set(o+1,t0);
    static_QUType_QString.set(o+2,t1);
    activate_signal( clist, o );
}

// SIGNAL mediaInfoRetrieved
void KBlog::APIBlog::mediaInfoRetrieved( const QString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 3, t0 );
}

// SIGNAL itemOnServer
void KBlog::APIBlog::itemOnServer( KBlog::BlogPosting& t0 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 4 );
    if ( !clist )
	return;
    QUObject o[2];
    static_QUType_ptr.set(o+1,&t0);
    activate_signal( clist, o );
}

// SIGNAL error
void KBlog::APIBlog::error( const QString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 5, t0 );
}

// SIGNAL uploadPostId
void KBlog::APIBlog::uploadPostId( const int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 6, t0 );
}

// SIGNAL fetchingPostsFinished
void KBlog::APIBlog::fetchingPostsFinished()
{
    activate_signal( staticMetaObject()->signalOffset() + 7 );
}

// SIGNAL fetchingCategoriesFinished
void KBlog::APIBlog::fetchingCategoriesFinished()
{
    activate_signal( staticMetaObject()->signalOffset() + 8 );
}

bool KBlog::APIBlog::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: static_QUType_bool.set(_o,interpretUserInfoJob((KIO::Job*)static_QUType_ptr.get(_o+1))); break;
    case 1: interpretListFoldersJob((KIO::Job*)static_QUType_ptr.get(_o+1)); break;
    case 2: static_QUType_bool.set(_o,interpretListItemsJob((KIO::Job*)static_QUType_ptr.get(_o+1))); break;
    case 3: interpretListCategoriesJob((KIO::Job*)static_QUType_ptr.get(_o+1)); break;
    case 4: static_QUType_bool.set(_o,interpretDownloadItemsJob((KIO::Job*)static_QUType_ptr.get(_o+1))); break;
    case 5: static_QUType_bool.set(_o,interpretUploadJob((KIO::Job*)static_QUType_ptr.get(_o+1))); break;
    case 6: static_QUType_bool.set(_o,interpretUploadMediaJob((KIO::Job*)static_QUType_ptr.get(_o+1))); break;
    default:
	return QObject::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool KBlog::APIBlog::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: userInfoRetrieved((const QString&)static_QUType_QString.get(_o+1),(const QString&)static_QUType_QString.get(_o+2),(const QString&)static_QUType_QString.get(_o+3)); break;
    case 1: folderInfoRetrieved((const QString&)static_QUType_QString.get(_o+1),(const QString&)static_QUType_QString.get(_o+2)); break;
    case 2: categoryInfoRetrieved((const QString&)static_QUType_QString.get(_o+1),(const QString&)static_QUType_QString.get(_o+2)); break;
    case 3: mediaInfoRetrieved((const QString&)static_QUType_QString.get(_o+1)); break;
    case 4: itemOnServer((KBlog::BlogPosting&)*((KBlog::BlogPosting*)static_QUType_ptr.get(_o+1))); break;
    case 5: error((const QString&)static_QUType_QString.get(_o+1)); break;
    case 6: uploadPostId((const int)static_QUType_int.get(_o+1)); break;
    case 7: fetchingPostsFinished(); break;
    case 8: fetchingCategoriesFinished(); break;
    default:
	return QObject::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool KBlog::APIBlog::qt_property( int id, int f, QVariant* v)
{
    return QObject::qt_property( id, f, v);
}

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