libkazv
Loading...
Searching...
No Matches
clientfwd.hpp
Go to the documentation of this file.
1/*
2 * This file is part of libkazv.
3 * SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe>
4 * SPDX-License-Identifier: AGPL-3.0-or-later
5 */
6
7#pragma once
8#include <libkazv-config.hpp>
9
10#include <tuple>
11#include <variant>
12
13#include <lager/context.hpp>
14#include <context.hpp>
15
16#include "room/room-model.hpp"
17
18namespace Kazv
19{
20 using namespace Api;
21 struct JobInterface;
22 class EventInterface;
23
24 struct LoginAction;
25 struct TokenLoginAction;
26 struct MLoginTokenLoginAction;
27 struct LogoutAction;
28 struct HardLogoutAction;
29 struct GetWellknownAction;
30 struct GetVersionsAction;
31 struct SyncAction;
32 struct SetShouldSyncAction;
33 struct PostInitialFiltersAction;
34 struct SetAccountDataAction;
35 struct PaginateTimelineAction;
36 struct SendMessageAction;
37 struct SendStateEventAction;
38 struct SaveLocalEchoAction;
39 struct UpdateLocalEchoStatusAction;
40 struct RedactEventAction;
41 struct CreateRoomAction;
42 struct GetRoomStatesAction;
43 struct GetStateEventAction;
44 struct InviteToRoomAction;
45 struct JoinRoomByIdAction;
46 struct JoinRoomAction;
47 struct LeaveRoomAction;
48 struct ForgetRoomAction;
49 struct KickAction;
50 struct BanAction;
51 struct UnbanAction;
52 struct SetAccountDataPerRoomAction;
53
54 struct ProcessResponseAction;
55 struct SetTypingAction;
56 struct PostReceiptAction;
57 struct SetReadMarkerAction;
58
59 struct UploadContentAction;
60 struct DownloadContentAction;
61 struct DownloadThumbnailAction;
62
63 struct SendToDeviceMessageAction;
64 struct SendMultipleToDeviceMessagesAction;
65
66 struct UploadIdentityKeysAction;
67 struct GenerateAndUploadOneTimeKeysAction;
68 struct QueryKeysAction;
69 struct EnsureKeysFromDevicesAction;
70 struct ClaimKeysAction;
71 struct EncryptMegOlmEventAction;
72 struct SetDeviceTrustLevelAction;
73 struct SetDevicesTrustLevelsAction;
74 struct SetTrustLevelNeededToSendKeysAction;
75 struct PrepareForSharingRoomKeyAction;
76 struct ImportFromKeyBackupFileAction;
77 struct NotifyVerificationTrackerModelAction;
78 struct RequestShareRoomSessionKeyAction;
79
80 struct GetUserProfileAction;
81 struct SetAvatarUrlAction;
82 struct SetDisplayNameAction;
83
84 struct ResubmitJobAction;
85
86 struct LoadEventsFromStorageAction;
87 struct PurgeRoomTimelineAction;
88
89 struct ClientModel;
90
91 using ClientAction = std::variant<
93
101
106
118
123 BanAction,
126
128
132
136
139
153
157
159
162 >;
163
165
166 using ClientResult = std::pair<ClientModel, ClientEffect>;
167}
Definition context.hpp:205
Definition location.hpp:10
std::variant< RoomListAction, LoginAction, TokenLoginAction, MLoginTokenLoginAction, LogoutAction, HardLogoutAction, GetWellknownAction, GetVersionsAction, SyncAction, SetShouldSyncAction, PostInitialFiltersAction, SetAccountDataAction, PaginateTimelineAction, SendMessageAction, SendStateEventAction, SaveLocalEchoAction, UpdateLocalEchoStatusAction, RedactEventAction, CreateRoomAction, GetRoomStatesAction, GetStateEventAction, InviteToRoomAction, JoinRoomByIdAction, JoinRoomAction, LeaveRoomAction, ForgetRoomAction, KickAction, BanAction, UnbanAction, SetAccountDataPerRoomAction, ProcessResponseAction, SetTypingAction, PostReceiptAction, SetReadMarkerAction, UploadContentAction, DownloadContentAction, DownloadThumbnailAction, SendToDeviceMessageAction, SendMultipleToDeviceMessagesAction, UploadIdentityKeysAction, GenerateAndUploadOneTimeKeysAction, QueryKeysAction, EnsureKeysFromDevicesAction, ClaimKeysAction, EncryptMegOlmEventAction, SetDeviceTrustLevelAction, SetDevicesTrustLevelsAction, SetTrustLevelNeededToSendKeysAction, PrepareForSharingRoomKeyAction, ImportFromKeyBackupFileAction, NotifyVerificationTrackerModelAction, RequestShareRoomSessionKeyAction, GetUserProfileAction, SetAvatarUrlAction, SetDisplayNameAction, ResubmitJobAction, LoadEventsFromStorageAction, PurgeRoomTimelineAction > ClientAction
Definition clientfwd.hpp:162
std::pair< ClientModel, ClientEffect > ClientResult
Definition clientfwd.hpp:166
RoomListModel::Action RoomListAction
Definition room-model.hpp:465
Definition client-model.hpp:391
Definition client-model.hpp:559
Definition client-model.hpp:327
Definition client-model.hpp:437
Definition client-model.hpp:443
The action to encrypt an megolm event for a room.
Definition client-model.hpp:587
Ensure keys from devices of a user.
Definition client-model.hpp:543
Definition client-model.hpp:379
The action to generate one-time keys.
Definition client-model.hpp:503
Definition client-model.hpp:345
Definition client-model.hpp:350
Definition client-model.hpp:678
Definition client-model.hpp:254
Definition client-model.hpp:249
Definition client-model.hpp:246
Import keys from key backup file.
Definition client-model.hpp:658
Definition client-model.hpp:357
Definition client-model.hpp:368
Definition client-model.hpp:363
Definition client-model.hpp:384
Definition client-model.hpp:374
Load events from the storage into the model.
Definition client-model.hpp:694
Definition client-model.hpp:220
Definition client-model.hpp:245
Login using the m.token.login flow.
Definition client-model.hpp:239
Notify that the verification tracker model has been changed.
Definition client-model.hpp:668
Definition client-model.hpp:266
Definition client-model.hpp:463
Definition client-model.hpp:417
Encrypt room key as olm and add it to the room's pending keyshare slots.
Definition client-model.hpp:635
Definition client-model.hpp:458
Remove events from the model, keeping only the latest maxToKeep events.
Definition client-model.hpp:709
Definition client-model.hpp:514
Definition client-model.hpp:320
Definition client-model.hpp:671
Definition client-model.hpp:453
Saves an local echo.
Definition client-model.hpp:294
Definition client-model.hpp:274
Send multiple to device messages.
Definition client-model.hpp:484
Definition client-model.hpp:281
Definition client-model.hpp:472
Definition client-model.hpp:467
Definition client-model.hpp:404
Definition client-model.hpp:683
Definition client-model.hpp:604
Set the trust levels of devices.
Definition client-model.hpp:619
Definition client-model.hpp:688
Definition client-model.hpp:423
Definition client-model.hpp:261
Definition client-model.hpp:627
Definition client-model.hpp:410
Definition client-model.hpp:258
Definition client-model.hpp:228
Definition client-model.hpp:398
Updates the status of an local echo.
Definition client-model.hpp:310
Definition client-model.hpp:429
Definition client-model.hpp:492