-
Notifications
You must be signed in to change notification settings - Fork 1
/
qqbridgecallback.cpp
42 lines (31 loc) · 1.21 KB
/
qqbridgecallback.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
qqbridgecallback.cpp - QQ c and Qt bridge
Copyright (c) 2014 by Jun Zhang <[email protected]>
Kopete (c) 2002-2006 by the Kopete developers <[email protected]>
*************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
*************************************************************************
*/
#include "qqbridgecallback.h"
void ObjectInstance::callSignal(CallbackObject callback)
{
emit signal_from_instance(callback);
}
ObjectInstance::ObjectInstance()
{
}
ObjectInstance *ObjectInstance::m_instance = 0;
ObjectInstance* ObjectInstance::instance()
{
if (!m_instance) {
if (!m_instance)
m_instance = new ObjectInstance;
}
return m_instance;
}
#include "qqbridgecallback.moc"