Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-libclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-libclient
Commits
ba8cc85d
Commit
ba8cc85d
authored
13 years ago
by
Emmanuel Lepage
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code
parent
9de176ab
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/CallModel.cpp
+0
-15
0 additions, 15 deletions
src/CallModel.cpp
src/CallModel.h
+8
-25
8 additions, 25 deletions
src/CallModel.h
src/CallModel.hpp
+4
-3
4 additions, 3 deletions
src/CallModel.hpp
with
12 additions
and
43 deletions
src/CallModel.cpp
+
0
−
15
View file @
ba8cc85d
...
...
@@ -19,18 +19,3 @@
***************************************************************************/
#include
<CallModel.h>
//template<> QString CallModel<InternalCallModelStruct>::priorAccountId;
//template<> AccountList* CallModel<InternalCallModelStruct>::accountList;
//template<> bool CallModel<InternalCallModelStruct>::instanceInit(false);
//template<> bool CallModel<InternalCallModelStruct>::callInit(false);
//template<> bool CallModel<InternalCallModelStruct>::historyInit(false);
//template<> QHash<QString, Call*> CallModel<InternalCallModelStruct>::activeCalls;
//template<> QHash<QString, Call*> CallModel<InternalCallModelStruct>::historyCalls;
//template<> QHash<Call*, InternalCallModelStruct*> CallModel<InternalCallModelStruct>::privateCallList_call;
//template<> QHash<QString, InternalCallModelStruct*> CallModel<InternalCallModelStruct>::privateCallList_callId;
This diff is collapsed.
Click to expand it.
src/CallModel.h
+
8
−
25
View file @
ba8cc85d
...
...
@@ -16,7 +16,7 @@
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
**************************************************************************
*/
**************************************************************************
/
#ifndef CALL_MODEL_H
#define CALL_MODEL_H
...
...
@@ -44,20 +44,6 @@
* @note This model intend to be reimplemented by the view, not used alone
* @note Most of the member are static to preserve ressources and QObject::connect()
*/
// template <typename T, typename Index> class CallModel;
// template <typename Widget, typename Index> class InternalCallModelStruct : public QModelIndex {
//
// friend class CallModel<Widget,Index>;
// //InternalCallModelStruct* parent;
// Widget* call;
// Call* call_real;
// Index* treeItem; //For the view
// QList<InternalCallModelStruct*> children; //For the view
// bool conference;
// };
template
<
typename
CallWidget
,
typename
Index
>
class
LIB_EXPORT
CallModel
{
//Q_OBJECT
...
...
@@ -71,6 +57,9 @@ class LIB_EXPORT CallModel {
CallModel
(
ModelType
type
);
virtual
~
CallModel
()
{}
virtual
bool
initCall
();
virtual
bool
initHistory
();
virtual
Call
*
addCall
(
Call
*
call
,
Call
*
parent
=
0
);
int
size
();
Call
*
findCallByCallId
(
QString
callId
);
...
...
@@ -148,17 +137,13 @@ class LIB_EXPORT CallModel {
QList
<
InternalCallModelStruct
*>
children
;
//For the view
bool
conference
;
};
typedef
QHash
<
Call
*
,
InternalCallModelStruct
*>
InternalCall
;
typedef
QHash
<
QString
,
InternalCallModelStruct
*>
InternalCallId
;
typedef
QHash
<
Call
*
,
InternalCallModelStruct
*>
InternalCall
;
typedef
QHash
<
QString
,
InternalCallModelStruct
*>
InternalCallId
;
typedef
QHash
<
CallWidget
,
InternalCallModelStruct
*>
InternalWidget
;
typedef
QHash
<
Index
,
InternalCallModelStruct
*>
InternalIndex
;
typedef
QHash
<
Index
,
InternalCallModelStruct
*>
InternalIndex
;
static
QHash
<
QString
,
Call
*>
activeCalls
;
static
QHash
<
QString
,
Call
*>
historyCalls
;
/*
static QHash<Call*, InternalCallModelStruct<T, Index>* > privateCallList_call;
static QHash<QString, InternalCallModelStruct<T, Index>* > privateCallList_callId;
static QHash<T, InternalCallModelStruct<T, Index>* > privateCallList_widget;
static QHash<Index, InternalCallModelStruct<T, Index>* > privateCallList_index;*/
static
QHash
<
QString
,
Call
*>
historyCalls
;
static
InternalCall
privateCallList_call
;
static
InternalCallId
privateCallList_callId
;
...
...
@@ -170,8 +155,6 @@ class LIB_EXPORT CallModel {
static
AccountList
*
accountList
;
static
bool
callInit
;
static
bool
historyInit
;
virtual
bool
initCall
();
virtual
bool
initHistory
();
private
:
static
bool
instanceInit
;
...
...
This diff is collapsed.
Click to expand it.
src/CallModel.hpp
+
4
−
3
View file @
ba8cc85d
...
...
@@ -67,11 +67,12 @@ template<typename CallWidget, typename Index> bool CallModel<CallWidget,Index>::
//Fill the history list
//@warning This solution wont scale to multiple call or history model implementation. Some static addCall + foreach for each call would be needed if this case ever become unavoidable
template
<
typename
CallWidget
,
typename
Index
>
bool
CallModel
<
CallWidget
,
Index
>::
initHistory
()
{
if
(
!
historyInit
)
{
{
qDebug
()
<<
"
\n\n\n\n
Init history"
;
if
(
!
historyInit
)
{
qDebug
()
<<
"In if"
;
ConfigurationManagerInterface
&
configurationManager
=
ConfigurationManagerInterfaceSingleton
::
getInstance
();
QStringList
historyMap
=
configurationManager
.
getHistory
().
value
();
foreach
(
QString
historyCallId
,
historyMap
)
{
qDebug
()
<<
historyMap
.
size
();
foreach
(
QString
historyCallId
,
historyMap
)
{
qDebug
()
<<
"Here"
;
QStringList
param
=
historyCallId
.
split
(
"|"
);
if
(
param
.
count
()
<=
10
)
{
//If this ever change, look at the gnome client
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment