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 class 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
79 struct GetUserProfileAction;
80 struct SetAvatarUrlAction;
81 struct SetDisplayNameAction;
82
83 struct ResubmitJobAction;
84
85 struct LoadEventsFromStorageAction;
86 struct PurgeRoomTimelineAction;
87
88 struct ClientModel;
89
90 using ClientAction = std::variant<
92
100
105
117
122 BanAction,
125
127
131
135
138
151
155
157
160 >;
161
163
164 using ClientResult = std::pair<ClientModel, ClientEffect>;
165}
Definition context.hpp:205
Definition location.hpp:10
std::pair< ClientModel, ClientEffect > ClientResult
Definition clientfwd.hpp:164
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, GetUserProfileAction, SetAvatarUrlAction, SetDisplayNameAction, ResubmitJobAction, LoadEventsFromStorageAction, PurgeRoomTimelineAction > ClientAction
Definition clientfwd.hpp:160
RoomListModel::Action RoomListAction
Definition room-model.hpp:434
Definition client-model.hpp:377
Definition client-model.hpp:545
Definition client-model.hpp:313
Definition client-model.hpp:423
Definition client-model.hpp:429
The action to encrypt an megolm event for a room.
Definition client-model.hpp:573
Ensure keys from devices of a user.
Definition client-model.hpp:529
Definition client-model.hpp:365
The action to generate one-time keys.
Definition client-model.hpp:489
Definition client-model.hpp:331
Definition client-model.hpp:336
Definition client-model.hpp:657
Definition client-model.hpp:240
Definition client-model.hpp:235
Definition client-model.hpp:232
Import keys from key backup file.
Definition client-model.hpp:644
Definition client-model.hpp:343
Definition client-model.hpp:354
Definition client-model.hpp:349
Definition client-model.hpp:370
Definition client-model.hpp:360
Load events from the storage into the model.
Definition client-model.hpp:673
Definition client-model.hpp:206
Definition client-model.hpp:231
Login using the m.token.login flow.
Definition client-model.hpp:225
Notify that the verification tracker model has been changed.
Definition client-model.hpp:654
Definition client-model.hpp:252
Definition client-model.hpp:449
Definition client-model.hpp:403
Encrypt room key as olm and add it to the room's pending keyshare slots.
Definition client-model.hpp:621
Definition client-model.hpp:444
Remove events from the model, keeping only the latest maxToKeep events.
Definition client-model.hpp:688
Definition client-model.hpp:500
Definition client-model.hpp:306
Definition client-model.hpp:439
Saves an local echo.
Definition client-model.hpp:280
Definition client-model.hpp:260
Send multiple to device messages.
Definition client-model.hpp:470
Definition client-model.hpp:267
Definition client-model.hpp:458
Definition client-model.hpp:453
Definition client-model.hpp:390
Definition client-model.hpp:662
Definition client-model.hpp:590
Set the trust levels of devices.
Definition client-model.hpp:605
Definition client-model.hpp:667
Definition client-model.hpp:409
Definition client-model.hpp:247
Definition client-model.hpp:613
Definition client-model.hpp:396
Definition client-model.hpp:244
Definition client-model.hpp:214
Definition client-model.hpp:384
Updates the status of an local echo.
Definition client-model.hpp:296
Definition client-model.hpp:415
Definition client-model.hpp:478