Port things from MSN to WLM plugin:
[kdenetwork.git] / kopete / protocols / msn / msndebugrawcmddlg.cpp
blobbf75e22a5f278c266e2d86689ea47b6c043d6467
1 /*
2 msndebugrawcmddlg.cpp - Send a raw MSN command for debugging
4 Copyright (c) 2002 by Martijn Klingens <klingens@kde.org>
5 Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org>
7 Portions of this code are taken from KMerlin,
8 (c) 2001 by Olaf Lueg <olueg@olsd.de>
10 *************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 *************************************************************************
20 #include "msndebugrawcmddlg.h"
22 #include "ui_msndebugrawcommand_base.h"
24 #include <qcheckbox.h>
25 #include <qlineedit.h>
26 #include <ktextedit.h>
28 #include <klocale.h>
30 MSNDebugRawCmdDlg::MSNDebugRawCmdDlg( QWidget *parent )
31 : KDialog( parent )
33 setCaption( i18n( "DEBUG: Send Raw Command - MSN Plugin" ) );
34 setButtons( KDialog::Ok | KDialog::Cancel );
35 setDefaultButton( KDialog::Ok );
36 showButtonSeparator( true );
38 setInitialSize( QSize( 350, 200 ) );
40 QWidget* w = new QWidget( this );
41 m_main = new Ui::MSNDebugRawCommand_base();
42 m_main->setupUi( w );
43 setMainWidget( w );
46 MSNDebugRawCmdDlg::~MSNDebugRawCmdDlg()
48 delete m_main;
51 QString MSNDebugRawCmdDlg::command()
53 return m_main->m_command->text();
56 QString MSNDebugRawCmdDlg::params()
58 return m_main->m_params->text();
61 bool MSNDebugRawCmdDlg::addNewline()
63 return m_main->m_addNewline->isChecked();
66 bool MSNDebugRawCmdDlg::addId()
68 return m_main->m_addId->isChecked();
71 QString MSNDebugRawCmdDlg::msg()
73 return m_main->m_msg->toPlainText();
76 #include "msndebugrawcmddlg.moc"
78 // vim: set noet ts=4 sts=4 sw=4: