pidgin/quail/quail
Clone
Summary
Browse
Changes
Graph
Setup the signal slots in the buddy list
soc.2013.phil.quail
2013-07-01, Phil Hannent
87bc001209e9
Setup the signal slots in the buddy list
#include
"mainwindow.h"
#include
"ui_mainwindow.h"
#include
"debugwindow.h"
#include
"accountswindow.h"
#include
"joinachatwindow.h"
#include
"aboutwindow.h"
#include
<QDebug>
MainWindow
::
MainWindow
(
QWidget
*
parent
)
:
QMainWindow
(
parent
),
ui
(
new
Ui
::
MainWindow
),
m_debugWindow
(
0
),
m_accountsWindow
(
0
),
m_joinAChatWindow
(
0
),
m_aboutWindow
(
0
)
{
ui
->
setupUi
(
this
);
connect
(
ui
->
actionDebug_Window
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
slotShowDebug
()));
connect
(
ui
->
actionManage_Accounts
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
slotShowAccounts
()));
qpCore
=
new
QPurple
::
QPurpleCore
();
qpCore
->
setBlist
(
this
);
qpCore
->
qpurple_init
();
}
MainWindow
::~
MainWindow
()
{
delete
ui
;
}
void
MainWindow
::
slotShowDebug
()
{
if
(
m_debugWindow
==
0
)
m_debugWindow
=
new
DebugWindow
(
this
);
m_debugWindow
->
show
();
}
void
MainWindow
::
slotShowAccounts
()
{
if
(
m_accountsWindow
==
0
)
m_accountsWindow
=
new
AccountsWindow
(
this
);
m_accountsWindow
->
show
();
}
void
MainWindow
::
on_actionJoin_a_Chat_triggered
()
{
if
(
m_joinAChatWindow
==
0
)
m_joinAChatWindow
=
new
JoinAChatWindow
(
this
);
m_joinAChatWindow
->
show
();
}
void
MainWindow
::
on_actionAbout_triggered
()
{
if
(
m_aboutWindow
==
0
)
{
//m_aboutWindow = new AboutWindow(this);
}
//m_aboutWindow->set
//m_aboutWindow->show();
}
void
MainWindow
::
slot_blist_new_list
(
PurpleBuddyList
*
blist
)
{
qDebug
()
<<
"MainWindow::slot_blist_new_list"
;
}
void
MainWindow
::
slot_blist_new_node
(
PurpleBlistNode
*
node
)
{
qDebug
()
<<
"MainWindow::slot_blist_new_node"
;
}
void
MainWindow
::
slot_blist_show
(
PurpleBuddyList
*
list
)
{
qDebug
()
<<
"MainWindow::slot_blist_show"
;
}
void
MainWindow
::
slot_blist_update
(
PurpleBuddyList
*
list
,
PurpleBlistNode
*
node
)
{
qDebug
()
<<
"MainWindow::slot_blist_update"
;
}
void
MainWindow
::
slot_blist_remove
(
PurpleBuddyList
*
list
,
PurpleBlistNode
*
node
)
{
qDebug
()
<<
"MainWindow::slot_blist_remove"
;
}
void
MainWindow
::
slot_blist_destroy
(
PurpleBuddyList
*
list
)
{
qDebug
()
<<
"MainWindow::slot_blist_destroy"
;
}
void
MainWindow
::
slot_blist_set_visible
(
PurpleBuddyList
*
list
,
gboolean
show
)
{
qDebug
()
<<
"MainWindow::slot_blist_set_visible"
;
}
void
MainWindow
::
slot_blist_request_add_buddy
(
PurpleAccount
*
account
,
const
char
*
username
,
const
char
*
group
,
const
char
*
alias
)
{
qDebug
()
<<
"MainWindow::slot_blist_request_add_buddy"
;
}
void
MainWindow
::
slot_blist_request_add_chat
(
PurpleAccount
*
account
,
PurpleGroup
*
group
,
const
char
*
alias
,
const
char
*
name
)
{
qDebug
()
<<
"MainWindow::slot_blist_request_add_chat"
;
}
void
MainWindow
::
slot_blist_request_add_group
()
{
qDebug
()
<<
"MainWindow::slot_blist_request_add_group"
;
}