Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
ed17343d
Commit
ed17343d
authored
Dec 30, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unstable
parent
4ce00a71
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
1 deletion
+53
-1
CMakeLists.txt
tests/CMakeLists.txt
+2
-0
App.cpp
tests/src/app/App.cpp
+3
-0
ChatModel.hpp
tests/src/components/chat/ChatModel.hpp
+1
-1
SipAddressModel.cpp
tests/src/components/sip-address/SipAddressModel.cpp
+9
-0
SipAddressModel.hpp
tests/src/components/sip-address/SipAddressModel.hpp
+38
-0
No files found.
tests/CMakeLists.txt
View file @
ed17343d
...
...
@@ -66,6 +66,7 @@ set(SOURCES
src/components/notifier/Notifier.cpp
src/components/settings/AccountSettingsModel.cpp
src/components/settings/SettingsModel.cpp
src/components/sip-address/SipAddressModel.cpp
src/components/sip-addresses/SipAddressesModel.cpp
src/components/smart-search-bar/SmartSearchBarModel.cpp
src/components/timeline/TimelineModel.cpp
...
...
@@ -90,6 +91,7 @@ set(HEADERS
src/components/presence/Presence.hpp
src/components/settings/AccountSettingsModel.hpp
src/components/settings/SettingsModel.hpp
src/components/sip-address/SipAddressModel.hpp
src/components/sip-addresses/SipAddressesModel.hpp
src/components/smart-search-bar/SmartSearchBarModel.hpp
src/components/timeline/TimelineModel.hpp
...
...
tests/src/app/App.cpp
View file @
ed17343d
...
...
@@ -89,6 +89,9 @@ void App::registerTypes () {
qmlRegisterUncreatableType
<
ContactModel
>
(
"Linphone"
,
1
,
0
,
"ContactModel"
,
"ContactModel is uncreatable"
);
qmlRegisterUncreatableType
<
SipAddressModel
>
(
"Linphone"
,
1
,
0
,
"SipAddressModel"
,
"SipAddressModel is uncreatable"
);
qmlRegisterUncreatableType
<
VcardModel
>
(
"Linphone"
,
1
,
0
,
"VcardModel"
,
"VcardModel is uncreatable"
);
...
...
tests/src/components/chat/ChatModel.hpp
View file @
ed17343d
...
...
@@ -61,7 +61,7 @@ public slots:
void
removeAllEntries
();
signals:
void
sipAddressChanged
(
const
QString
&
sip
A
ddress
);
void
sipAddressChanged
(
const
QString
&
sip
_a
ddress
);
void
allEntriesRemoved
();
private:
...
...
tests/src/components/sip-address/SipAddressModel.cpp
0 → 100644
View file @
ed17343d
#include "../contact/ContactModel.hpp"
#include "SipAddressModel.hpp"
// =============================================================================
SipAddressModel
::
SipAddressModel
()
{
// TODO
}
tests/src/components/sip-address/SipAddressModel.hpp
0 → 100644
View file @
ed17343d
#ifndef SIP_ADDRESS_MODEL_H_
#define SIP_ADDRESS_MODEL_H_
#include <QObject>
// =============================================================================
class
ContactModel
;
class
SipAddressModel
:
public
QObject
{
Q_OBJECT
;
Q_PROPERTY
(
QString
sipAddress
READ
getSipAddress
CONSTANT
);
Q_PROPERTY
(
ContactModel
*
contact
READ
getContact
NOTIFY
contactChanged
);
public:
SipAddressModel
();
~
SipAddressModel
()
=
default
;
ContactModel
*
getContact
()
const
{
return
m_contact
;
}
signals:
void
contactChanged
(
ContactModel
*
contact
);
private:
QString
getSipAddress
()
const
{
return
m_sip_address
;
}
QString
m_sip_address
;
ContactModel
*
m_contact
=
nullptr
;
};
Q_DECLARE_METATYPE
(
SipAddressModel
*
);
#endif // SIP_ADDRESS_MODEL_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment