Jump to content

KTp/Tasks/ModelRoles: Difference between revisions

From KDE Community Wiki
D ed (talk | contribs)
Created page with "{| ! align="left" class="wikitable"| Original Role !! Type !! Comment |- |- | AliasRole ||returns Tp::AccountPtr |- | AudioCallCapabilityRole |- | AvatarRole |- | BlockedRole ..."
 
D ed (talk | contribs)
No edit summary
Line 2: Line 2:
! align="left" class="wikitable"| Original Role !! Type !! Comment
! align="left" class="wikitable"| Original Role !! Type !! Comment
|-
|-
Qt::DisplayRole || Contact's alias OR account name OR readable group name
|-
|-
| AliasRole ||returns Tp::AccountPtr
AccountRole||Tp::AccountPtr
|-
|-
| AudioCallCapabilityRole
| AliasRole || Contact's alias
|-
|-
| AvatarRole
| AudioCallCapabilityRole || bool || both you can remote can audio call
|-
|-
| BlockedRole
| AvatarRole || TODO || contact's avatar
|-
|-
| ClientTypesRole
| BlockedRole || bool || isBlocked
|-
|-
| ContactRole
| ClientTypesRole || QStringList || client types from Tp::Contact
|-
|-
| DesktopSharingCapabilityRole
| ContactRole || Tp::ContactPtr ||
|-
|-
| FileTransferCapabilityRole
| DesktopSharingCapabilityRole || bool || both you and remote can desktop share
|-
|-
| GroupsRole ||no idea, probably deprecated :S
| FileTransferCapabilityRole || bool || both you and remote can file transfer
|-
|-
| IconRole
| GroupsRole ||no idea, probably deprecated || ??
|-
|-
| IdRole || string || contact ID or account ID or group ID appropriate
| IconRole || ?? || ??
|-
| IdRole || string || contact ID or account ID or group ID as appropriate
|-
|-
| index || ????  || ? ? ? ? ? ? ?  
| index || ????  || ? ? ? ? ? ? ?  
Line 29: Line 32:
| ItemRole || deprecated
| ItemRole || deprecated
|-
|-
| MediaCallCapabilityRole || bool || both you +remote can audio call
| MediaCallCapabilityRole || bool || ???
|-
|-
| NicknameRole ||  ||no idea...
| NicknameRole ||  ||no idea...

Revision as of 19:25, 24 January 2013

Qt::DisplayRole || Contact's alias OR account name OR readable group name AccountRole||Tp::AccountPtr
Original Role Type Comment
AliasRole Contact's alias
AudioCallCapabilityRole bool both you can remote can audio call
AvatarRole TODO contact's avatar
BlockedRole bool isBlocked
ClientTypesRole QStringList client types from Tp::Contact
ContactRole Tp::ContactPtr
DesktopSharingCapabilityRole bool both you and remote can desktop share
FileTransferCapabilityRole bool both you and remote can file transfer
GroupsRole no idea, probably deprecated ??
IconRole ?? ??
IdRole string contact ID or account ID or group ID as appropriate
index ???? ? ? ? ? ? ? ?
ItemRole deprecated
MediaCallCapabilityRole bool ???
NicknameRole no idea...
OnlineUsersCountRole number of online contacts in this group
PresenceMessageRole string - status message
PresenceRole Tp::Presence Should use KTp::Presence
PresenceTypeRole enum
RowType enum either AccountsRowType, ContactsRowType, GroupRowType
SSHContactCapabilityRole bool both you + remote can SSH contact
TextChatCapabilityRole bool both you + remote can text chat
TotalUsersCountRole int total users in this group
TypeRole mystery to me.
VideoCallCapabilityRole bool both you + remote can video call