Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-uwp
Commits
7d6737c6
Commit
7d6737c6
authored
Oct 18, 2016
by
Nicolas Jager
Browse files
internal : add function to erase cache folder
Change-Id: Ib4f409bd0cacad2694593477ad49c804a18fb0ed Tuleap: #1229
parent
93dbe9e9
Changes
2
Show whitespace changes
Inline
Side-by-side
RingD.cpp
View file @
7d6737c6
...
...
@@ -233,9 +233,28 @@ void RingClientUWP::RingD::askToExportOnRing(String ^ accountId, String ^ passwo
tasksList_
.
push
(
task
);
}
void
RingClientUWP
::
RingD
::
eraseCacheFolder
()
{
StorageFolder
^
localFolder
=
ApplicationData
::
Current
->
LocalFolder
;
String
^
folderName
=
".cache"
;
task
<
IStorageItem
^>
(
localFolder
->
TryGetItemAsync
(
folderName
)).
then
([
this
](
IStorageItem
^
folder
)
{
if
(
folder
)
{
MSG_
(
"erasing cache folder."
);
folder
->
DeleteAsync
();
}
else
{
WNG_
(
"cache folder not found."
);
}
});
}
void
RingClientUWP
::
RingD
::
startDaemon
()
{
eraseCacheFolder
();
create_task
([
&
]()
{
using
SharedCallback
=
std
::
shared_ptr
<
DRing
::
CallbackWrapperBase
>
;
...
...
RingD.h
View file @
7d6737c6
...
...
@@ -94,6 +94,7 @@ internal:
void
unPauseCall
(
String
^
callId
);
void
askToRefreshKnownDevices
(
String
^
accountId
);
void
askToExportOnRing
(
String
^
accountId
,
String
^
password
);
void
eraseCacheFolder
();
/* TODO : move members */
///bool hasConfig; // replaced by startingStatus
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment