diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-10 10:28:08 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-10 13:08:19 +0000 |
commit | cf3c347220c0d4723108276c398da1538752b813 (patch) | |
tree | 3ee422f3d67efd0251841d42c77eb07b497de78b /src/plugins/cpaster/cpasterplugin.h | |
parent | c7a6221e6eaae1b3a49a1d8e9e49b9399cacc87b (diff) |
CodePaster: Modernize
* Use pragma once
* Make some slots private members
Change-Id: Iebc593f4cd6c690bedfcd1d4dfeb0882bf78ec74
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/cpaster/cpasterplugin.h')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.h b/src/plugins/cpaster/cpasterplugin.h index 7237b5ce941..ce9c9cc7781 100644 --- a/src/plugins/cpaster/cpasterplugin.h +++ b/src/plugins/cpaster/cpasterplugin.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef CPASTERPLUGIN_H -#define CPASTERPLUGIN_H +#pragma once #include "codepasterservice.h" @@ -40,7 +39,7 @@ QT_END_NAMESPACE namespace CodePaster { class CustomFetcher; class CustomPoster; -struct Settings; +class Settings; class Protocol; class CodePasterServiceImpl : public QObject, public CodePaster::Service @@ -77,7 +76,10 @@ public: static CodepasterPlugin *instance(); -public slots: + void post(PasteSources pasteSources); + void post(QString data, const QString &mimeType); + +private: void pasteSnippet(); void fetch(); void finishPost(const QString &link); @@ -85,10 +87,7 @@ public slots: const QString &content, bool error); - void post(PasteSources pasteSources); - void post(QString data, const QString &mimeType); void fetchUrl(); -private: static CodepasterPlugin *m_instance; const QSharedPointer<Settings> m_settings; @@ -103,5 +102,3 @@ private: Q_DECLARE_OPERATORS_FOR_FLAGS(CodepasterPlugin::PasteSources) } // namespace CodePaster - -#endif // CPASTERPLUGIN_H |