aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpaster/cpasterplugin.h
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2012-05-16 14:51:01 +0400
committerTobias Hunger <tobias.hunger@nokia.com>2012-05-16 16:58:00 +0200
commit338524baab706c15a0d0838b01e34a77139c79a2 (patch)
tree3330e5691dd5f1a92c54325d097548ce1e1f2710 /src/plugins/cpaster/cpasterplugin.h
parentf17ad979973c479c43fcb52c9788e46dbed3e380 (diff)
Added "Open URL" action.
It was implemented in CodepasterPlugin because it provides facility to fetch files from network into editor with proper error reporting. Change-Id: I1ea7f1799dfa3ca8423a06a64b43b419f23046eb Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/cpaster/cpasterplugin.h')
-rw-r--r--src/plugins/cpaster/cpasterplugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.h b/src/plugins/cpaster/cpasterplugin.h
index f7c93526b53..1c0cba8a0c3 100644
--- a/src/plugins/cpaster/cpasterplugin.h
+++ b/src/plugins/cpaster/cpasterplugin.h
@@ -85,6 +85,7 @@ public slots:
bool error);
void post(QString data, const QString &mimeType);
+ void fetchUrl();
private:
static CodepasterPlugin *m_instance;
@@ -92,8 +93,10 @@ private:
QAction *m_postEditorAction;
QAction *m_postClipboardAction;
QAction *m_fetchAction;
+ QAction *m_fetchUrlAction;
QList<Protocol*> m_protocols;
QStringList m_fetchedSnippets;
+ Protocol *m_urlOpen;
};
} // namespace CodePaster