Warning, /network/neochat/src/qml/EventDelegate.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2021 Tobias Fella <tobias.fella@kde.org>
0002 // SPDX-License-Identifier: GPL-3.0-only
0003 
0004 import QtQuick
0005 import QtQuick.Layouts
0006 
0007 import Qt.labs.qmlmodels
0008 
0009 import org.kde.neochat
0010 
0011 DelegateChooser {
0012     id: root
0013 
0014     role: "delegateType"
0015     property var room
0016     required property NeoChatConnection connection
0017 
0018     DelegateChoice {
0019         roleValue: DelegateType.State
0020         delegate: StateDelegate {}
0021     }
0022 
0023     DelegateChoice {
0024         roleValue: DelegateType.Emote
0025         delegate: TextDelegate {
0026             connection: root.connection
0027         }
0028     }
0029 
0030     DelegateChoice {
0031         roleValue: DelegateType.Message
0032         delegate: TextDelegate {
0033             connection: root.connection
0034         }
0035     }
0036 
0037     DelegateChoice {
0038         roleValue: DelegateType.Notice
0039         delegate: TextDelegate {
0040             connection: root.connection
0041         }
0042     }
0043 
0044     DelegateChoice {
0045         roleValue: DelegateType.Image
0046         delegate: ImageDelegate {
0047             connection: root.connection
0048         }
0049     }
0050 
0051     DelegateChoice {
0052         roleValue: DelegateType.Sticker
0053         delegate: ImageDelegate {
0054             connection: root.connection
0055         }
0056     }
0057 
0058     DelegateChoice {
0059         roleValue: DelegateType.Audio
0060         delegate: AudioDelegate {
0061             connection: root.connection
0062         }
0063     }
0064 
0065     DelegateChoice {
0066         roleValue: DelegateType.Video
0067         delegate: VideoDelegate {
0068             connection: root.connection
0069         }
0070     }
0071 
0072     DelegateChoice {
0073         roleValue: DelegateType.File
0074         delegate: FileDelegate {
0075             connection: root.connection
0076         }
0077     }
0078 
0079     DelegateChoice {
0080         roleValue: DelegateType.Encrypted
0081         delegate: EncryptedDelegate {
0082             connection: root.connection
0083         }
0084     }
0085 
0086     DelegateChoice {
0087         roleValue: DelegateType.ReadMarker
0088         delegate: ReadMarkerDelegate {}
0089     }
0090 
0091     DelegateChoice {
0092         roleValue: DelegateType.Poll
0093         delegate: PollDelegate {
0094             connection: root.connection
0095         }
0096     }
0097 
0098     DelegateChoice {
0099         roleValue: DelegateType.Location
0100         delegate: LocationDelegate {
0101             connection: root.connection
0102         }
0103     }
0104 
0105     DelegateChoice {
0106         roleValue: DelegateType.LiveLocation
0107         delegate: LiveLocationDelegate {
0108             room: root.room
0109             connection: root.connection
0110         }
0111     }
0112 
0113     DelegateChoice {
0114         roleValue: DelegateType.Loading
0115         delegate: LoadingDelegate {}
0116     }
0117 
0118     DelegateChoice {
0119         roleValue: DelegateType.TimelineEnd
0120         delegate: TimelineEndDelegate {
0121             room: root.room
0122         }
0123     }
0124 
0125     DelegateChoice {
0126         roleValue: DelegateType.Other
0127         delegate: Item {}
0128     }
0129 }