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:465
Definition client-model.hpp:387
Definition client-model.hpp:555
Definition client-model.hpp:323
Definition client-model.hpp:433
Definition client-model.hpp:439
The action to encrypt an megolm event for a room.
Definition client-model.hpp:583
Ensure keys from devices of a user.
Definition client-model.hpp:539
Definition client-model.hpp:375
The action to generate one-time keys.
Definition client-model.hpp:499
Definition client-model.hpp:341
Definition client-model.hpp:346
Definition client-model.hpp:667
Definition client-model.hpp:250
Definition client-model.hpp:245
Definition client-model.hpp:242
Import keys from key backup file.
Definition client-model.hpp:654
Definition client-model.hpp:353
Definition client-model.hpp:364
Definition client-model.hpp:359
Definition client-model.hpp:380
Definition client-model.hpp:370
Load events from the storage into the model.
Definition client-model.hpp:683
Definition client-model.hpp:216
Definition client-model.hpp:241
Login using the m.token.login flow.
Definition client-model.hpp:235
Notify that the verification tracker model has been changed.
Definition client-model.hpp:664
Definition client-model.hpp:262
Definition client-model.hpp:459
Definition client-model.hpp:413
Encrypt room key as olm and add it to the room's pending keyshare slots.
Definition client-model.hpp:631
Definition client-model.hpp:454
Remove events from the model, keeping only the latest maxToKeep events.
Definition client-model.hpp:698
Definition client-model.hpp:510
Definition client-model.hpp:316
Definition client-model.hpp:449
Saves an local echo.
Definition client-model.hpp:290
Definition client-model.hpp:270
Send multiple to device messages.
Definition client-model.hpp:480
Definition client-model.hpp:277
Definition client-model.hpp:468
Definition client-model.hpp:463
Definition client-model.hpp:400
Definition client-model.hpp:672
Definition client-model.hpp:600
Set the trust levels of devices.
Definition client-model.hpp:615
Definition client-model.hpp:677
Definition client-model.hpp:419
Definition client-model.hpp:257
Definition client-model.hpp:623
Definition client-model.hpp:406
Definition client-model.hpp:254
Definition client-model.hpp:224
Definition client-model.hpp:394
Updates the status of an local echo.
Definition client-model.hpp:306
Definition client-model.hpp:425
Definition client-model.hpp:488