#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'server.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "server.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqlineedit.h>
#include <ntqlabel.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqspinbox.h>
#include <ntqframe.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "server.ui.h"

/*
 *  Constructs a MyServer as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
MyServer::MyServer( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "MyServer" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setSizeGripEnabled( false );
    MyServerLayout = new TQGridLayout( this, 1, 1, 11, 6, "MyServerLayout"); 

    tabWidget = new TQTabWidget( this, "tabWidget" );
    tabWidget->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, tabWidget->sizePolicy().hasHeightForWidth() ) );

    Widget8 = new TQWidget( tabWidget, "Widget8" );
    Widget8Layout = new TQGridLayout( Widget8, 1, 1, 11, 6, "Widget8Layout"); 

    kcfg_ClientOnly = new TQCheckBox( Widget8, "kcfg_ClientOnly" );

    Widget8Layout->addWidget( kcfg_ClientOnly, 0, 0 );

    ServerInfo = new TQGroupBox( Widget8, "ServerInfo" );
    ServerInfo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, ServerInfo->sizePolicy().hasHeightForWidth() ) );
    ServerInfo->setColumnLayout(0, TQt::Vertical );
    ServerInfo->layout()->setSpacing( 6 );
    ServerInfo->layout()->setMargin( 11 );
    ServerInfoLayout = new TQGridLayout( ServerInfo->layout() );
    ServerInfoLayout->setAlignment( TQt::AlignTop );

    layout1 = new TQGridLayout( 0, 1, 1, 0, 6, "layout1"); 

    kcfg_NickName = new TQLineEdit( ServerInfo, "kcfg_NickName" );
    kcfg_NickName->setMaxLength( 20 );

    layout1->addWidget( kcfg_NickName, 0, 1 );

    kcfg_ContactInfo = new TQLineEdit( ServerInfo, "kcfg_ContactInfo" );
    kcfg_ContactInfo->setMaxLength( 40 );

    layout1->addWidget( kcfg_ContactInfo, 0, 3 );

    textLabel1 = new TQLabel( ServerInfo, "textLabel1" );

    layout1->addWidget( textLabel1, 0, 2 );

    textLabel1_2 = new TQLabel( ServerInfo, "textLabel1_2" );

    layout1->addWidget( textLabel1_2, 0, 0 );

    ServerInfoLayout->addMultiCellLayout( layout1, 0, 0, 0, 1 );

    layout2 = new TQGridLayout( 0, 1, 1, 0, 6, "layout2"); 

    MyFamily = new TQListView( ServerInfo, "MyFamily" );
    MyFamily->addColumn( tr2i18n( "CC" ) );
    MyFamily->addColumn( tr2i18n( "geoip" ) );
    MyFamily->addColumn( tr2i18n( "fp" ) );
    MyFamily->addColumn( tr2i18n( "My Family       " ) );
    MyFamily->header()->setResizeEnabled( false, MyFamily->header()->count() - 1 );
    MyFamily->setSelectionMode( TQListView::Extended );
    MyFamily->setAllColumnsShowFocus( true );
    MyFamily->setResizeMode( TQListView::AllColumns );

    layout2->addWidget( MyFamily, 0, 1 );

    pushButton2 = new TQPushButton( ServerInfo, "pushButton2" );

    layout2->addWidget( pushButton2, 1, 1 );

    textLabel7_2_2_2_3 = new TQLabel( ServerInfo, "textLabel7_2_2_2_3" );

    layout2->addMultiCellWidget( textLabel7_2_2_2_3, 0, 1, 0, 0 );

    ServerInfoLayout->addMultiCellLayout( layout2, 1, 1, 0, 1 );

    layout5 = new TQGridLayout( 0, 1, 1, 0, 6, "layout5"); 

    kcfg_DirListenAddress = new TQSpinBox( ServerInfo, "kcfg_DirListenAddress" );
    kcfg_DirListenAddress->setEnabled( true );
    kcfg_DirListenAddress->setMaxValue( 65535 );

    layout5->addWidget( kcfg_DirListenAddress, 1, 1 );

    textLabel4 = new TQLabel( ServerInfo, "textLabel4" );

    layout5->addWidget( textLabel4, 0, 0 );

    kcfg_ORListenAddress = new TQSpinBox( ServerInfo, "kcfg_ORListenAddress" );
    kcfg_ORListenAddress->setEnabled( true );
    kcfg_ORListenAddress->setMaxValue( 65535 );

    layout5->addWidget( kcfg_ORListenAddress, 0, 1 );

    textLabel4_2 = new TQLabel( ServerInfo, "textLabel4_2" );

    layout5->addWidget( textLabel4_2, 1, 0 );

    ServerInfoLayout->addLayout( layout5, 3, 0 );

    kcfg_ForwardPorts = new TQCheckBox( ServerInfo, "kcfg_ForwardPorts" );

    ServerInfoLayout->addWidget( kcfg_ForwardPorts, 3, 1 );

    layout4 = new TQVBoxLayout( 0, 0, 6, "layout4"); 

    line1_2 = new TQFrame( ServerInfo, "line1_2" );
    line1_2->setFrameShape( TQFrame::HLine );
    line1_2->setFrameShadow( TQFrame::Sunken );
    line1_2->setFrameShape( TQFrame::HLine );
    layout4->addWidget( line1_2 );

    kcfg_PublishServerDescriptor = new TQCheckBox( ServerInfo, "kcfg_PublishServerDescriptor" );
    layout4->addWidget( kcfg_PublishServerDescriptor );

    line1_2_2 = new TQFrame( ServerInfo, "line1_2_2" );
    line1_2_2->setFrameShape( TQFrame::HLine );
    line1_2_2->setFrameShadow( TQFrame::Sunken );
    line1_2_2->setFrameShape( TQFrame::HLine );
    layout4->addWidget( line1_2_2 );

    kcfg_MiddleMan = new TQCheckBox( ServerInfo, "kcfg_MiddleMan" );
    layout4->addWidget( kcfg_MiddleMan );

    kcfg_BridgeRelay = new TQCheckBox( ServerInfo, "kcfg_BridgeRelay" );
    layout4->addWidget( kcfg_BridgeRelay );

    ServerInfoLayout->addMultiCellLayout( layout4, 4, 4, 0, 1 );

    line1 = new TQFrame( ServerInfo, "line1" );
    line1->setFrameShape( TQFrame::HLine );
    line1->setFrameShadow( TQFrame::Sunken );
    line1->setFrameShape( TQFrame::HLine );

    ServerInfoLayout->addMultiCellWidget( line1, 2, 2, 0, 1 );

    Widget8Layout->addWidget( ServerInfo, 1, 0 );
    tabWidget->insertTab( Widget8, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabWidget, "TabPage" );
    TabPageLayout = new TQGridLayout( TabPage, 1, 1, 11, 6, "TabPageLayout"); 

    kcfg_DefaultServerPerformance = new TQCheckBox( TabPage, "kcfg_DefaultServerPerformance" );
    kcfg_DefaultServerPerformance->setChecked( true );

    TabPageLayout->addWidget( kcfg_DefaultServerPerformance, 0, 0 );

    line3 = new TQFrame( TabPage, "line3" );
    line3->setFrameShape( TQFrame::HLine );
    line3->setFrameShadow( TQFrame::Sunken );
    line3->setFrameShape( TQFrame::HLine );

    TabPageLayout->addWidget( line3, 1, 0 );
    spacer1 = new TQSpacerItem( 21, 240, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout->addItem( spacer1, 3, 0 );

    PerformanceOptions = new TQGroupBox( TabPage, "PerformanceOptions" );
    PerformanceOptions->setEnabled( false );
    PerformanceOptions->setColumnLayout(0, TQt::Vertical );
    PerformanceOptions->layout()->setSpacing( 6 );
    PerformanceOptions->layout()->setMargin( 11 );
    PerformanceOptionsLayout = new TQGridLayout( PerformanceOptions->layout() );
    PerformanceOptionsLayout->setAlignment( TQt::AlignTop );

    kcfg_NumCPUs = new TQSpinBox( PerformanceOptions, "kcfg_NumCPUs" );
    kcfg_NumCPUs->setMaxValue( 5000 );
    kcfg_NumCPUs->setValue( 1 );

    PerformanceOptionsLayout->addWidget( kcfg_NumCPUs, 0, 4 );

    kcfg_MaxOnionsPending = new TQSpinBox( PerformanceOptions, "kcfg_MaxOnionsPending" );
    kcfg_MaxOnionsPending->setMaxValue( 5000 );
    kcfg_MaxOnionsPending->setValue( 100 );

    PerformanceOptionsLayout->addWidget( kcfg_MaxOnionsPending, 1, 4 );

    textLabel2_2 = new TQLabel( PerformanceOptions, "textLabel2_2" );

    PerformanceOptionsLayout->addMultiCellWidget( textLabel2_2, 1, 1, 0, 3 );

    textLabel2 = new TQLabel( PerformanceOptions, "textLabel2" );

    PerformanceOptionsLayout->addMultiCellWidget( textLabel2, 0, 0, 0, 3 );

    textLabel3 = new TQLabel( PerformanceOptions, "textLabel3" );

    PerformanceOptionsLayout->addMultiCellWidget( textLabel3, 2, 2, 2, 3 );

    textLabel3_2 = new TQLabel( PerformanceOptions, "textLabel3_2" );

    PerformanceOptionsLayout->addMultiCellWidget( textLabel3_2, 3, 3, 0, 2 );

    kcfg_ShutDownWaitLength = new TQSpinBox( PerformanceOptions, "kcfg_ShutDownWaitLength" );
    kcfg_ShutDownWaitLength->setMaxValue( 5000 );

    PerformanceOptionsLayout->addMultiCellWidget( kcfg_ShutDownWaitLength, 3, 3, 3, 4 );

    AccountingStart = new TQComboBox( false, PerformanceOptions, "AccountingStart" );

    PerformanceOptionsLayout->addWidget( AccountingStart, 2, 4 );

    kcfg_AccountingMax = new TQSpinBox( PerformanceOptions, "kcfg_AccountingMax" );

    PerformanceOptionsLayout->addWidget( kcfg_AccountingMax, 2, 1 );

    textLabel2_2_2 = new TQLabel( PerformanceOptions, "textLabel2_2_2" );

    PerformanceOptionsLayout->addWidget( textLabel2_2_2, 2, 0 );

    kcfg_ConnLimit = new TQSpinBox( PerformanceOptions, "kcfg_ConnLimit" );
    kcfg_ConnLimit->setMaxValue( 9999 );

    PerformanceOptionsLayout->addMultiCellWidget( kcfg_ConnLimit, 4, 4, 3, 4 );

    textLabel4_2_2_2 = new TQLabel( PerformanceOptions, "textLabel4_2_2_2" );

    PerformanceOptionsLayout->addMultiCellWidget( textLabel4_2_2_2, 4, 4, 0, 2 );

    TabPageLayout->addWidget( PerformanceOptions, 2, 0 );
    tabWidget->insertTab( TabPage, TQString::fromLatin1("") );

    ExitPolicies = new TQWidget( tabWidget, "ExitPolicies" );
    ExitPoliciesLayout = new TQGridLayout( ExitPolicies, 1, 1, 11, 6, "ExitPoliciesLayout"); 
    spacer2 = new TQSpacerItem( 20, 130, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ExitPoliciesLayout->addItem( spacer2, 1, 0 );

    groupBox6 = new TQGroupBox( ExitPolicies, "groupBox6" );
    groupBox6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, groupBox6->sizePolicy().hasHeightForWidth() ) );
    groupBox6->setColumnLayout(0, TQt::Vertical );
    groupBox6->layout()->setSpacing( 6 );
    groupBox6->layout()->setMargin( 11 );
    groupBox6Layout = new TQGridLayout( groupBox6->layout() );
    groupBox6Layout->setAlignment( TQt::AlignTop );

    textLabel5_2 = new TQLabel( groupBox6, "textLabel5_2" );

    groupBox6Layout->addMultiCellWidget( textLabel5_2, 0, 1, 0, 0 );

    ExitPolicy = new TQListView( groupBox6, "ExitPolicy" );
    ExitPolicy->addColumn( tr2i18n( "Policy" ) );
    ExitPolicy->addColumn( tr2i18n( "IP Address        " ) );
    ExitPolicy->header()->setResizeEnabled( false, ExitPolicy->header()->count() - 1 );
    ExitPolicy->addColumn( tr2i18n( "Port" ) );
    ExitPolicy->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, ExitPolicy->sizePolicy().hasHeightForWidth() ) );
    ExitPolicy->setSelectionMode( TQListView::Extended );
    ExitPolicy->setAllColumnsShowFocus( false );
    ExitPolicy->setResizeMode( TQListView::AllColumns );

    groupBox6Layout->addMultiCellWidget( ExitPolicy, 0, 0, 1, 4 );

    SocksPort = new TQSpinBox( groupBox6, "SocksPort" );

    groupBox6Layout->addWidget( SocksPort, 1, 3 );

    PushAdd2 = new TQPushButton( groupBox6, "PushAdd2" );

    groupBox6Layout->addWidget( PushAdd2, 1, 4 );

    Policy = new TQComboBox( false, groupBox6, "Policy" );

    groupBox6Layout->addWidget( Policy, 1, 1 );

    SocksAddress = new TQLineEdit( groupBox6, "SocksAddress" );

    groupBox6Layout->addWidget( SocksAddress, 1, 2 );

    ExitPoliciesLayout->addWidget( groupBox6, 0, 0 );
    tabWidget->insertTab( ExitPolicies, TQString::fromLatin1("") );

    MyServerLayout->addWidget( tabWidget, 0, 0 );
    languageChange();
    resize( TQSize(532, 513).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( kcfg_DefaultServerPerformance, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( checkBox6_toggled(bool) ) );
    connect( kcfg_MiddleMan, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( kcfg_MiddleMan_toggled(bool) ) );
    connect( PushAdd2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( pushAdd2_clicked() ) );
    connect( ExitPolicy, TQ_SIGNAL( contextMenuRequested(TQListViewItem*,const TQPoint&,int) ), this, TQ_SLOT( ExitPolicy_contextMenuRequested(TQListViewItem*,const TQPoint&,int) ) );
    connect( pushButton2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( pushButton2_clicked() ) );
    init();
}

/*
 *  Destroys the object and frees any allocated resources
 */
MyServer::~MyServer()
{
    // no need to delete child widgets, TQt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MyServer::languageChange()
{
    setCaption( tr2i18n( "MyDialog1" ) );
    kcfg_ClientOnly->setText( tr2i18n( "Never Run As a Server, &Even If Tor Thinks I've Got The Girth" ) );
    ServerInfo->setTitle( tr2i18n( "Tor Server Details" ) );
    textLabel1->setText( tr2i18n( "Contact Info:" ) );
    textLabel1_2->setText( tr2i18n( "Nick:" ) );
    MyFamily->header()->setLabel( 0, tr2i18n( "CC" ) );
    MyFamily->header()->setLabel( 1, tr2i18n( "geoip" ) );
    MyFamily->header()->setLabel( 2, tr2i18n( "fp" ) );
    MyFamily->header()->setLabel( 3, tr2i18n( "My Family       " ) );
    pushButton2->setText( tr2i18n( "Delete Selected" ) );
    textLabel7_2_2_2_3->setText( tr2i18n( "<p> This is a list of other servers that you administer. This will prevent people from using you more than once.\n"
"<p><b>You add to this list by right-clicking on your servers in the main 'Tor Network' tab and clicking 'Add to My Family'.</b></p>" ) );
    textLabel4->setText( tr2i18n( "Serve Tor Traffic on Local Port" ) );
    textLabel4_2->setText( tr2i18n( "Serve Tor Listings on Local Port" ) );
    kcfg_ForwardPorts->setText( tr2i18n( "Improve Accessibility" ) );
    TQToolTip::add( kcfg_ForwardPorts, tr2i18n( "This will tell Tor to adverise your Tor server on the common ports 80 and 443, <br> it will also tell your router to forward traffic on these ports to Tor." ) );
    kcfg_PublishServerDescriptor->setText( tr2i18n( "Let the Tor Network know about me as a server" ) );
    kcfg_MiddleMan->setText( tr2i18n( "&Act as a Relay Server Only (Disables Your Exit Policies in the Tab Above)." ) );
    kcfg_BridgeRelay->setText( tr2i18n( "&Act as an Anti-Censorship Relay" ) );
    tabWidget->changeTab( Widget8, tr2i18n( "&General" ) );
    kcfg_DefaultServerPerformance->setText( tr2i18n( "Let Tor figure out the &best performance options to use" ) );
    PerformanceOptions->setTitle( tr2i18n( "Performance Options" ) );
    textLabel2_2->setText( tr2i18n( "Maximum number of encryption tasks to keep waiting:" ) );
    textLabel2->setText( tr2i18n( "Maximum number of simultaneous encryption tasks:" ) );
    textLabel3->setText( tr2i18n( "every" ) );
    textLabel3_2->setText( tr2i18n( "When shutting down, wait at most: " ) );
    kcfg_ShutDownWaitLength->setSuffix( tr2i18n( " seconds" ) );
    AccountingStart->clear();
    AccountingStart->insertItem( tr2i18n( "day" ) );
    AccountingStart->insertItem( tr2i18n( "week" ) );
    AccountingStart->insertItem( tr2i18n( "month" ) );
    kcfg_AccountingMax->setSuffix( tr2i18n( " MBs p/s" ) );
    textLabel2_2_2->setText( tr2i18n( "Never exceed " ) );
    kcfg_ConnLimit->setSuffix( tr2i18n( " descriptors" ) );
    textLabel4_2_2_2->setText( tr2i18n( "Do not start unless system can support at least" ) );
    tabWidget->changeTab( TabPage, tr2i18n( "&Performance" ) );
    groupBox6->setTitle( tr2i18n( "Sites you do not want to send traffic to" ) );
    textLabel5_2->setText( tr2i18n( "<p> When you are an exit server for a circuit it is your computer that the destination website or host will see - the traffic will have your name on it. If you are an exit server and do not want your server to route traffic to certain sites/hosts this is the place to specify them.</p>\n"
"<p><b>Use '0' as the port to specify 'all ports'. Use '*' as the address to specify 'all addresses'</b>.</p>" ) );
    ExitPolicy->header()->setLabel( 0, tr2i18n( "Policy" ) );
    ExitPolicy->header()->setLabel( 1, tr2i18n( "IP Address        " ) );
    ExitPolicy->header()->setLabel( 2, tr2i18n( "Port" ) );
    PushAdd2->setText( tr2i18n( "O&K" ) );
    Policy->clear();
    Policy->insertItem( tr2i18n( "accept" ) );
    Policy->insertItem( tr2i18n( "reject" ) );
    tabWidget->changeTab( ExitPolicies, tr2i18n( "&Exit Policies" ) );
}

/****************************************************************************
** MyServer meta object code from reading C++ file 'server.h'
**
** 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 "server.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 *MyServer::className() const
{
    return "MyServer";
}

TQMetaObject *MyServer::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MyServer( "MyServer", &MyServer::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* MyServer::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 = TQDialog::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"kcfg_DefaultServerIP_toggled", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "on", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"kcfg_MiddleMan_toggled", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "state", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"checkBox6_toggled", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"pushAdd2_clicked", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In },
	{ "point", &static_QUType_varptr, "\x0e", TQUParameter::In },
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"ExitPolicy_contextMenuRequested", 3, param_slot_4 };
    static const TQUMethod slot_5 = {"slotDeleteEntry", 0, 0 };
    static const TQUMethod slot_6 = {"pushButton2_clicked", 0, 0 };
    static const TQUParameter param_slot_7[] = {
	{ "on", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"kcfg_BridgeRelay_toggled", 1, param_slot_7 };
    static const TQUMethod slot_8 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "kcfg_DefaultServerIP_toggled(bool)", &slot_0, TQMetaData::Public },
	{ "kcfg_MiddleMan_toggled(bool)", &slot_1, TQMetaData::Public },
	{ "checkBox6_toggled(bool)", &slot_2, TQMetaData::Public },
	{ "pushAdd2_clicked()", &slot_3, TQMetaData::Public },
	{ "ExitPolicy_contextMenuRequested(TQListViewItem*,const TQPoint&,int)", &slot_4, TQMetaData::Public },
	{ "slotDeleteEntry()", &slot_5, TQMetaData::Public },
	{ "pushButton2_clicked()", &slot_6, TQMetaData::Public },
	{ "kcfg_BridgeRelay_toggled(bool)", &slot_7, TQMetaData::Public },
	{ "languageChange()", &slot_8, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"MyServer", parentObject,
	slot_tbl, 9,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_MyServer.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* MyServer::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "MyServer" ) )
	return this;
    return TQDialog::tqt_cast( clname );
}

bool MyServer::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: kcfg_DefaultServerIP_toggled((bool)static_QUType_bool.get(_o+1)); break;
    case 1: kcfg_MiddleMan_toggled((bool)static_QUType_bool.get(_o+1)); break;
    case 2: checkBox6_toggled((bool)static_QUType_bool.get(_o+1)); break;
    case 3: pushAdd2_clicked(); break;
    case 4: ExitPolicy_contextMenuRequested((TQListViewItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
    case 5: slotDeleteEntry(); break;
    case 6: pushButton2_clicked(); break;
    case 7: kcfg_BridgeRelay_toggled((bool)static_QUType_bool.get(_o+1)); break;
    case 8: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

bool MyServer::tqt_emit( int _id, TQUObject* _o )
{
    return TQDialog::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool MyServer::tqt_property( int id, int f, TQVariant* v)
{
    return TQDialog::tqt_property( id, f, v);
}

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