Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Add-ons
Commits
48e5297a
Commit
48e5297a
authored
Mar 12, 2022
by
Alexander Lohnau
💬
Browse files
applets/comic/engine: Make methods private where possible
parent
013048fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
applets/comic/checknewstrips.h
View file @
48e5297a
...
...
@@ -29,13 +29,11 @@ Q_SIGNALS:
*/
void
lastStrip
(
int
index
,
const
QString
&
identifier
,
const
QString
&
suffix
);
public
Q_SLOTS
:
void
dataUpdated
(
const
QString
&
name
,
const
ComicMetaData
&
data
);
private
Q_SLOTS
:
void
start
();
private:
void
dataUpdated
(
const
QString
&
name
,
const
ComicMetaData
&
data
);
int
mMinutes
;
int
mIndex
;
ComicEngine
*
mEngine
;
...
...
applets/comic/comic.h
View file @
48e5297a
...
...
@@ -116,9 +116,6 @@ Q_SIGNALS:
void
providerUpdateIntervalChanged
();
void
maxComicLimitChanged
();
public
Q_SLOTS
:
void
dataUpdated
(
const
QString
&
name
,
const
ComicMetaData
&
data
);
private
Q_SLOTS
:
void
slotTabChanged
(
const
QString
&
newIdentifier
);
void
slotNextDay
();
...
...
@@ -167,6 +164,7 @@ private:
void
refreshComicData
();
void
setTabHighlighted
(
const
QString
&
id
,
bool
highlight
);
bool
isTabHighlighted
(
const
QString
&
id
)
const
;
void
dataUpdated
(
const
QString
&
name
,
const
ComicMetaData
&
data
);
private:
static
const
int
CACHE_LIMIT
;
...
...
applets/comic/comicarchivejob.h
View file @
48e5297a
...
...
@@ -65,15 +65,13 @@ public:
void
start
()
override
;
public
Q_SLOTS
:
void
dataUpdated
(
const
QString
&
source
,
const
ComicMetaData
&
data
);
protected:
bool
doKill
()
override
;
bool
doSuspend
()
override
;
bool
doResume
()
override
;
private:
void
dataUpdated
(
const
QString
&
source
,
const
ComicMetaData
&
data
);
/**
* Sets the total number of comics to download.
* @param currentSuffix if empty the from and to identifier suffix will be used.
...
...
applets/comic/engine/comic.h
View file @
48e5297a
...
...
@@ -45,9 +45,6 @@ public:
using
ComicRequestCallback
=
const
std
::
function
<
void
(
const
ComicMetaData
&
data
)
>
&
;
bool
requestSource
(
const
QString
&
identifier
,
ComicRequestCallback
callback
);
Q_SIGNALS:
void
sourceUpdated
(
const
QString
&
identifier
);
protected:
void
init
();
...
...
@@ -56,10 +53,10 @@ private:
void
error
(
ComicProvider
*
,
ComicRequestCallback
callback
);
void
onOnlineStateChanged
(
bool
);
void
setComicData
(
ComicProvider
*
provider
,
ComicRequestCallback
callback
);
QString
lastCachedIdentifier
(
const
QString
&
identifier
)
const
;
private:
bool
mEmptySuffix
;
QString
lastCachedIdentifier
(
const
QString
&
identifier
)
const
;
QString
mIdentifierError
;
QHash
<
QString
,
ComicProvider
*>
m_jobs
;
QT_WARNING_PUSH
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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