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
74ac68f5
Commit
74ac68f5
authored
13 years ago
by
Emmanuel Lepage
Browse files
Options
Downloads
Patches
Plain Diff
[7021] Add contact abstraction support
parent
b3667dd2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/CMakeLists.txt
+3
-3
3 additions, 3 deletions
src/CMakeLists.txt
src/ContactBackend.cpp
+14
-0
14 additions, 0 deletions
src/ContactBackend.cpp
src/ContactBackend.h
+34
-0
34 additions, 0 deletions
src/ContactBackend.h
with
51 additions
and
3 deletions
src/CMakeLists.txt
+
3
−
3
View file @
74ac68f5
...
...
@@ -21,8 +21,6 @@ set(GENERIC_LIB_VERSION "0.9.8")
INCLUDE_DIRECTORIES
(
${
QT_INCLUDES
}
${
CMAKE_CURRENT_BINARY_DIR
}
)
#File to compile
set
(
qtsflphone_LIB_SRCS
Call.cpp
...
...
@@ -30,6 +28,7 @@ set( qtsflphone_LIB_SRCS
AccountList.cpp
CallModel.cpp
Contact.cpp
ContactBackend.cpp
Item.cpp
configurationmanager_interface_singleton.cpp
callmanager_interface_singleton.cpp
...
...
@@ -98,7 +97,8 @@ set( qtsflphone_LIB_HDRS
AccountList.h
Call.h
CallModel.h
Contact.h
Contact.h
ContactBackend.h
Item.h
configurationmanager_interface_singleton.h
callmanager_interface_singleton.h
...
...
This diff is collapsed.
Click to expand it.
src/ContactBackend.cpp
0 → 100644
+
14
−
0
View file @
74ac68f5
#include
"ContactBackend.h"
#include
"Contact.h"
#include
<QHash>
ContactBackend
::
ContactBackend
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
ContactList
ContactBackend
::
update
()
{
return
update_slot
();
}
This diff is collapsed.
Click to expand it.
src/ContactBackend.h
0 → 100644
+
34
−
0
View file @
74ac68f5
#ifndef CONTACT_BACKEND_H
#define CONTACT_BACKEND_H
#include
<QObject>
#include
<QHash>
#include
"typedefs.h"
class
Contact
;
typedef
QList
<
Contact
*>
ContactList
;
class
LIB_EXPORT
ContactBackend
:
public
QObject
{
Q_OBJECT
public:
ContactBackend
(
QObject
*
parent
);
virtual
Contact
*
getContactByPhone
(
QString
phoneNumber
)
=
0
;
virtual
Contact
*
getContactByUid
(
QString
uid
)
=
0
;
virtual
void
editContact
(
Contact
*
contact
)
=
0
;
virtual
void
addNewContact
(
Contact
*
contact
)
=
0
;
protected:
virtual
ContactList
update_slot
(
)
=
0
;
QHash
<
QString
,
Contact
*>
m_pContactByPhone
;
QHash
<
QString
,
Contact
*>
m_pContactByUid
;
public
slots
:
ContactList
update
();
private
slots
:
signals:
};
#endif
\ No newline at end of file
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