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
17df363d
Commit
17df363d
authored
13 years ago
by
Emmanuel Lepage
Browse files
Options
Downloads
Patches
Plain Diff
Complete contact support is back
parent
126c8724
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Call.cpp
+6
-6
6 additions, 6 deletions
src/Call.cpp
src/Contact.cpp
+62
-8
62 additions, 8 deletions
src/Contact.cpp
src/Contact.h
+48
-16
48 additions, 16 deletions
src/Contact.h
with
116 additions
and
30 deletions
src/Call.cpp
+
6
−
6
View file @
17df363d
This diff is collapsed.
Click to expand it.
src/Contact.cpp
+
62
−
8
View file @
17df363d
...
@@ -46,7 +46,7 @@ Contact::Contact()
...
@@ -46,7 +46,7 @@ Contact::Contact()
Contact
::~
Contact
()
Contact
::~
Contact
()
{
{
delete
p
hoto
;
delete
m_pP
hoto
;
}
}
void
Contact
::
initItem
()
void
Contact
::
initItem
()
...
@@ -59,34 +59,88 @@ void Contact::initItemWidget()
...
@@ -59,34 +59,88 @@ void Contact::initItemWidget()
}
}
QString
Contact
::
getPhoneNumber
()
const
PhoneNumbers
Contact
::
getPhoneNumber
s
()
const
{
{
return
phone
Number
;
return
m_p
Number
s
;
}
}
QString
Contact
::
getNickName
()
const
QString
Contact
::
getNickName
()
const
{
{
return
n
ickName
;
return
m_pN
ickName
;
}
}
QString
Contact
::
getFirstName
()
const
QString
Contact
::
getFirstName
()
const
{
{
return
f
irstName
;
return
m_pF
irstName
;
}
}
QString
Contact
::
getSecondName
()
const
QString
Contact
::
getSecondName
()
const
{
{
return
s
econdName
;
return
m_pS
econdName
;
}
}
const
QPixmap
*
Contact
::
getPhoto
()
const
const
QPixmap
*
Contact
::
getPhoto
()
const
{
{
return
photo
;
return
m_pPhoto
;
}
QString
Contact
::
getFormattedName
()
const
{
return
m_pFormattedName
;
}
QString
Contact
::
getOrganization
()
const
{
return
m_pOrganization
;
}
QString
Contact
::
getPreferredEmail
()
const
{
return
m_pPreferredEmail
;
}
}
QString
Contact
::
getType
()
const
QString
Contact
::
getType
()
const
{
{
return
type
;
return
m_pType
;
}
void
Contact
::
setPhoneNumbers
(
PhoneNumbers
numbers
)
{
m_pNumbers
=
numbers
;
}
void
Contact
::
setNickName
(
QString
name
)
{
m_pNickName
=
name
;
}
void
Contact
::
setFirstName
(
QString
name
)
{
m_pFirstName
=
name
;
}
void
Contact
::
setFamilyName
(
QString
name
)
{
m_pSecondName
=
name
;
}
void
Contact
::
setPhoto
(
QPixmap
*
photo
)
{
m_pPhoto
=
photo
;
}
}
void
Contact
::
setFormattedName
(
QString
name
)
{
m_pFormattedName
=
name
;
}
void
Contact
::
setOrganization
(
QString
name
)
{
m_pOrganization
=
name
;
}
void
Contact
::
setPreferredEmail
(
QString
name
)
{
m_pPreferredEmail
=
name
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Contact.h
+
48
−
16
View file @
17df363d
...
@@ -36,33 +36,65 @@
...
@@ -36,33 +36,65 @@
@author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
@author Jérémy Quentin <jeremy.quentin@savoirfairelinux.com>
*/
*/
class
LIB_EXPORT
Contact
:
public
QObject
{
class
LIB_EXPORT
Contact
:
public
QObject
{
Q_OBJECT
public:
class
PhoneNumber
{
public:
PhoneNumber
(
QString
number
,
QString
type
)
:
m_pNumber
(
number
),
m_pType
(
type
){}
QString
&
getNumber
()
{
return
m_pNumber
;
}
QString
&
getType
()
{
return
m_pType
;
}
private
:
private
:
QString
firstName
;
QString
m_pNumber
;
QString
secondName
;
QString
m_pType
;
QString
nickName
;
};
QString
phoneNumber
;
typedef
QList
<
Contact
::
PhoneNumber
*>
PhoneNumbers
;
QPixmap
*
photo
;
QString
type
;
bool
displayPhoto
;
private
:
QString
m_pFirstName
;
QString
m_pSecondName
;
QString
m_pNickName
;
QPixmap
*
m_pPhoto
;
QString
m_pType
;
QString
m_pFormattedName
;
QString
m_pPreferredEmail
;
QString
m_pOrganization
;
bool
displayPhoto
;
PhoneNumbers
m_pNumbers
;
public
:
public
:
//Constructors & Destructors
//Constructors & Destructors
explicit
Contact
();
explicit
Contact
();
virtual
~
Contact
();
virtual
~
Contact
();
//Getters
//Getters
virtual
QString
getPhoneNumber
()
const
;
virtual
PhoneNumbers
getPhoneNumber
s
()
const
;
virtual
QString
getNickName
()
const
;
virtual
QString
getNickName
()
const
;
virtual
QString
getFirstName
()
const
;
virtual
QString
getFirstName
()
const
;
virtual
QString
getSecondName
()
const
;
virtual
QString
getSecondName
()
const
;
virtual
QString
getFormattedName
()
const
;
virtual
QString
getOrganization
()
const
;
virtual
QString
getPreferredEmail
()
const
;
virtual
const
QPixmap
*
getPhoto
()
const
;
virtual
const
QPixmap
*
getPhoto
()
const
;
virtual
QString
getType
()
const
;
virtual
QString
getType
()
const
;
virtual
void
initItem
();
virtual
void
initItem
();
virtual
void
setPhoneNumbers
(
PhoneNumbers
);
virtual
void
setFormattedName
(
QString
name
);
virtual
void
setNickName
(
QString
name
);
virtual
void
setFirstName
(
QString
name
);
virtual
void
setFamilyName
(
QString
name
);
virtual
void
setOrganization
(
QString
name
);
virtual
void
setPreferredEmail
(
QString
name
);
virtual
void
setPhoto
(
QPixmap
*
photo
);
protected
:
protected
:
virtual
void
initItemWidget
();
virtual
void
initItemWidget
();
};
};
typedef
Contact
::
PhoneNumbers
PhoneNumbers
;
#endif
#endif
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