mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 16:22:39 +00:00
144 lines
6.7 KiB
C
144 lines
6.7 KiB
C
//
|
|
// Copyright 2021 New Vector Ltd
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
/// RoomTimelineCellIdentifier represents room timeline cell identifiers.
|
|
typedef NS_ENUM(NSUInteger, RoomTimelineCellIdentifier) {
|
|
|
|
RoomTimelineCellIdentifierUnknown,
|
|
|
|
// - Text message
|
|
// -- Incoming
|
|
// --- Clear
|
|
RoomTimelineCellIdentifierIncomingTextMessage,
|
|
RoomTimelineCellIdentifierIncomingTextMessageWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingTextMessageWithPaginationTitle,
|
|
RoomTimelineCellIdentifierIncomingTextMessageWithoutSenderName,
|
|
RoomTimelineCellIdentifierIncomingTextMessageWithPaginationTitleWithoutSenderName,
|
|
// --- Encrypted
|
|
RoomTimelineCellIdentifierIncomingTextMessageEncrypted,
|
|
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithPaginationTitle,
|
|
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithoutSenderName,
|
|
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithPaginationTitleWithoutSenderName,
|
|
// -- Outgoing
|
|
// --- Clear
|
|
RoomTimelineCellIdentifierOutgoingTextMessage,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageWithPaginationTitle,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageWithoutSenderName,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageWithPaginationTitleWithoutSenderName,
|
|
// --- Encrypted
|
|
RoomTimelineCellIdentifierOutgoingTextMessageEncrypted,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithPaginationTitle,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithoutSenderName,
|
|
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithPaginationTitleWithoutSenderName,
|
|
|
|
// - Attachment
|
|
// -- Incoming
|
|
// --- Clear
|
|
RoomTimelineCellIdentifierIncomingAttachment,
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithPaginationTitle,
|
|
// --- Encrypted
|
|
RoomTimelineCellIdentifierIncomingAttachmentEncrypted,
|
|
RoomTimelineCellIdentifierIncomingAttachmentEncryptedWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingAttachmentEncryptedWithPaginationTitle,
|
|
// -- Outgoing
|
|
// --- Clear
|
|
RoomTimelineCellIdentifierOutgoingAttachment,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithPaginationTitle,
|
|
// --- Encrypted
|
|
RoomTimelineCellIdentifierOutgoingAttachmentEncrypted,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentEncryptedWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentEncryptedWithPaginationTitle,
|
|
|
|
// - Attachment without thumbnail
|
|
// --- Clear
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithoutThumbnail,
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithoutThumbnailWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithoutThumbnailWithPaginationTitle,
|
|
// --- Encrypted
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithoutThumbnailEncrypted,
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithoutThumbnailEncryptedWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingAttachmentWithoutThumbnailEncryptedWithPaginationTitle,
|
|
// -- Outgoing
|
|
// --- Clear
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithoutThumbnail,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithoutThumbnailWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithoutThumbnailWithPaginationTitle,
|
|
// --- Encrypted
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithoutThumbnailEncrypted,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithoutThumbnailEncryptedWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingAttachmentWithoutThumbnailEncryptedWithPaginationTitle,
|
|
|
|
// - Room membership
|
|
RoomTimelineCellIdentifierMembership,
|
|
RoomTimelineCellIdentifierMembershipWithPaginationTitle,
|
|
RoomTimelineCellIdentifierMembershipCollapsed,
|
|
RoomTimelineCellIdentifierMembershipCollapsedWithPaginationTitle,
|
|
RoomTimelineCellIdentifierMembershipExpanded,
|
|
RoomTimelineCellIdentifierMembershipExpandedWithPaginationTitle,
|
|
|
|
// - Key verification
|
|
RoomTimelineCellIdentifierKeyVerificationIncomingRequestApproval,
|
|
RoomTimelineCellIdentifierKeyVerificationIncomingRequestApprovalWithPaginationTitle,
|
|
RoomTimelineCellIdentifierKeyVerificationRequestStatus,
|
|
RoomTimelineCellIdentifierKeyVerificationRequestStatusWithPaginationTitle,
|
|
RoomTimelineCellIdentifierKeyVerificationConclusion,
|
|
RoomTimelineCellIdentifierKeyVerificationConclusionWithPaginationTitle,
|
|
|
|
// - Room creation
|
|
RoomTimelineCellIdentifierRoomCreationCollapsed,
|
|
RoomTimelineCellIdentifierRoomCreationCollapsedWithPaginationTitle,
|
|
|
|
// - Call
|
|
RoomTimelineCellIdentifierDirectCallStatus,
|
|
RoomTimelineCellIdentifierGroupCallStatus,
|
|
|
|
// - Voice message
|
|
// -- Incoming
|
|
RoomTimelineCellIdentifierIncomingVoiceMessage,
|
|
RoomTimelineCellIdentifierIncomingVoiceMessageWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingVoiceMessageWithPaginationTitle,
|
|
// -- Outgoing
|
|
RoomTimelineCellIdentifierOutgoingVoiceMessage,
|
|
RoomTimelineCellIdentifierOutgoingVoiceMessageWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingVoiceMessageWithPaginationTitle,
|
|
|
|
// - Poll
|
|
RoomTimelineCellIdentifierPoll,
|
|
RoomTimelineCellIdentifierPollWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierPollWithPaginationTitle,
|
|
|
|
// - Location sharing
|
|
// -- Incoming
|
|
RoomTimelineCellIdentifierIncomingLocation,
|
|
RoomTimelineCellIdentifierIncomingLocationWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierIncomingLocationWithPaginationTitle,
|
|
// -- Outgoing
|
|
RoomTimelineCellIdentifierOutgoingLocation,
|
|
RoomTimelineCellIdentifierOutgoingLocationWithoutSenderInfo,
|
|
RoomTimelineCellIdentifierOutgoingLocationWithPaginationTitle,
|
|
|
|
// - Others
|
|
RoomTimelineCellIdentifierEmpty,
|
|
RoomTimelineCellIdentifierSelectedSticker,
|
|
RoomTimelineCellIdentifierRoomPredecessor,
|
|
RoomTimelineCellIdentifierRoomCreationIntro,
|
|
RoomTimelineCellIdentifierTyping
|
|
};
|