/****************************************************************************
** Gwenview::History meta object code from reading C++ file 'standard input'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-gwenview/src/gwenview-trinity-14.1.6/src/app/history.h"

#include <ntqmetaobject.h>
#include <ntqapplication.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.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

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

TQMetaObject *Gwenview::History::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Gwenview__History( "Gwenview::History", &Gwenview::History::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString Gwenview::History::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "Gwenview::History", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString Gwenview::History::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "Gwenview::History", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* Gwenview::History::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQObject::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_ptr, "KURL", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"addURLToHistory", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"fillGoBackMenu", 0, 0 };
    static const TQUMethod slot_2 = {"fillGoForwardMenu", 0, 0 };
    static const TQUMethod slot_3 = {"goBack", 0, 0 };
    static const TQUMethod slot_4 = {"goForward", 0, 0 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"goBackTo", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"goForwardTo", 1, param_slot_6 };
    static const TQMetaData slot_tbl[] = {
	{ "addURLToHistory(const KURL&)", &slot_0, TQMetaData::Public },
	{ "fillGoBackMenu()", &slot_1, TQMetaData::Private },
	{ "fillGoForwardMenu()", &slot_2, TQMetaData::Private },
	{ "goBack()", &slot_3, TQMetaData::Private },
	{ "goForward()", &slot_4, TQMetaData::Private },
	{ "goBackTo(int)", &slot_5, TQMetaData::Private },
	{ "goForwardTo(int)", &slot_6, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "KURL", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"urlChanged", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "urlChanged(const KURL&)", &signal_0, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"Gwenview::History", parentObject,
	slot_tbl, 7,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_Gwenview__History.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* Gwenview::History::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "Gwenview::History" ) )
	return this;
    return TQObject::tqt_cast( clname );
}

#include <ntqobjectdefs.h>
#include <ntqsignalslotimp.h>

// TQ_SIGNAL urlChanged
void Gwenview::History::urlChanged( const KURL& t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,&t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

bool Gwenview::History::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: addURLToHistory((const KURL&)*((const KURL*)static_QUType_ptr.get(_o+1))); break;
    case 1: fillGoBackMenu(); break;
    case 2: fillGoForwardMenu(); break;
    case 3: goBack(); break;
    case 4: goForward(); break;
    case 5: goBackTo((int)static_QUType_int.get(_o+1)); break;
    case 6: goForwardTo((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQObject::tqt_invoke( _id, _o );
    }
    return true;
}

bool Gwenview::History::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: urlChanged((const KURL&)*((const KURL*)static_QUType_ptr.get(_o+1))); break;
    default:
	return TQObject::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool Gwenview::History::tqt_property( int id, int f, TQVariant* v)
{
    return TQObject::tqt_property( id, f, v);
}

bool Gwenview::History::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
