Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F113170
matrix-sdk-session-loader.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
769 B
Referenced Files
None
Subscribers
None
matrix-sdk-session-loader.cpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2024 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include
<kazv-defs.hpp>
#include
<iostream>
#include
<QString>
#include
"matrix-sdk-sessions-test.hpp"
int
main
([[
maybe_unused
]]
int
argc
,
char
*
argv
[])
{
std
::
string
userDataDir
=
argv
[
1
];
std
::
string
sessionName
=
argv
[
2
];
auto
sdk
=
MatrixSdkSessionsTest
::
makeMatrixSdkImpl
(
userDataDir
);
auto
res
=
sdk
->
loadSession
(
QString
::
fromStdString
(
sessionName
));
if
(
res
!=
MatrixSdk
::
SessionLoadSuccess
)
{
std
::
cout
<<
"cannot load session"
<<
std
::
endl
;
return
res
==
MatrixSdk
::
SessionLockFailed
?
1
:
2
;
}
std
::
cout
<<
"loaded session"
<<
std
::
endl
;
while
(
1
)
{}
return
0
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 24, 3:45 PM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39435
Default Alt Text
matrix-sdk-session-loader.cpp (769 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment