| Detail | Value |
|---|---|
| Import | TelegramQml 2.0 |
| Component | DialogListModel |
| C++ class | TelegramDialogListModel |
| Inherits | AbstractEngineListModel |
| Model | Yes |
- engine: Engine
- visibility: int
- sortFlag: list<int>
- filter: string
- dateConvertorMethod: function(){[code]}
- messageTextMethod: function(){[code]}
- refreshing: boolean (readOnly)
- useCache: boolean
- categories: map
- int indexOf(InputPeer peer)
- void clearHistory(InputPeer peer, boolean justClear, function(){[code]} callback)
- void clearHistory(InputPeer peer, boolean justClear)
- void clearHistory(InputPeer peer)
- void addContact(string firstName, string lastName, string phoneNumber, function(){[code]} callback)
- void addContact(string firstName, string lastName, string phoneNumber)
| Key | Value |
|---|---|
| VisibilityEmptyDialogs | 1 |
| VisibilityDeletedDialogs | 2 |
| VisibilityOnlineUsersOnly | 4 |
| VisibilityContacts | 8 |
| VisibilityNonContacts | 16 |
| VisibilityBots | 32 |
| VisibilityUsers | 24 |
| VisibilityChats | 64 |
| VisibilityChannels | 128 |
| VisibilitySecretChats | 256 |
| VisibilityAll | 507 |
| Key | Value |
|---|---|
| SortByType | 0 |
| SortByName | 1 |
| SortByDate | 2 |
| SortByUnreads | 3 |
| SortByOnline | 4 |
| SortByCategories | 5 |
| Key | Value |
|---|---|
| RoleDialogItem | 256 |
| RoleChatItem | 257 |
| RoleUserItem | 258 |
| RoleTopMessageItem | 259 |
| RolePeerItem | 260 |
| RolePeerHex | 261 |
| RoleIsSecretChat | 262 |
| RoleSecretChatState | 263 |
| RoleName | 264 |
| RoleMessageDate | 265 |
| RoleMessageUnread | 266 |
| RoleMessage | 267 |
| RoleMessageOut | 268 |
| RoleMessageType | 269 |
| RoleMessageUser | 270 |
| RoleLastOnline | 271 |
| RoleIsOnline | 272 |
| RoleStatus | 273 |
| RoleStatusText | 274 |
| RoleTyping | 275 |
| RoleUnreadCount | 276 |
| RoleMute | 277 |
| RoleCategory | 278 |
| RoleSecretChatStatus | 279 |
| Key | Value |
|---|---|
| SecretChatStateInit | 0 |
| SecretChatStateRequested | 1 |
| SecretChatStateAccepted | 2 |
| SecretChatStateCancelled | 3 |
- model.dialog
- model.chat
- model.user
- model.topMessage
- model.peer
- model.peerHex
- model.isSecretChat
- model.secretChatState
- model.title
- model.messageDate
- model.messageUnread
- model.message
- model.messageOut
- model.messageType
- model.messageUser
- model.lastOnline
- model.isOnline
- model.status
- model.statusText
- model.typing
- model.unreadCount
- model.mute
- model.category
- model.secretChatStatus