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 *************************************************************************
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. *
17 *************************************************************************
20 #include "msndebugrawcmddlg.h"
22 #include "ui_msndebugrawcommand_base.h"
24 #include <qcheckbox.h>
25 #include <qlineedit.h>
26 #include <ktextedit.h>
30 MSNDebugRawCmdDlg::MSNDebugRawCmdDlg( QWidget
*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();
46 MSNDebugRawCmdDlg::~MSNDebugRawCmdDlg()
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: