Changeset View
Changeset View
Standalone View
Standalone View
kdevuploadplugin.h
Show All 29 Lines | |||||
30 | class AllProfilesModel; | 30 | class AllProfilesModel; | ||
31 | 31 | | |||
32 | class UploadPlugin : public KDevelop::IPlugin | 32 | class UploadPlugin : public KDevelop::IPlugin | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | public: | 35 | public: | ||
36 | UploadPlugin(QObject *parent, const QVariantList & = QVariantList() ); | 36 | UploadPlugin(QObject *parent, const QVariantList & = QVariantList() ); | ||
37 | ~UploadPlugin() override; | 37 | ~UploadPlugin() override; | ||
38 | void unload() override; | | |||
39 | 38 | | |||
40 | /** | 39 | /** | ||
41 | * Returns the Upload-Action for the Contextmenu. | 40 | * Returns the Upload-Action for the Contextmenu. | ||
42 | */ | 41 | */ | ||
43 | KDevelop::ContextMenuExtension contextMenuExtension(KDevelop::Context* context, QWidget* parent) override; | 42 | KDevelop::ContextMenuExtension contextMenuExtension(KDevelop::Context* context, QWidget* parent) override; | ||
44 | 43 | | |||
45 | /** | 44 | /** | ||
46 | * Returns (and creates) the outputModel used for UploadPlugin. | 45 | * Returns (and creates) the outputModel used for UploadPlugin. | ||
47 | * Creates the output-view (only the first time called) | 46 | * Creates the output-view (only the first time called) | ||
48 | */ | 47 | */ | ||
49 | QStandardItemModel* outputModel(); | 48 | QStandardItemModel* outputModel(); | ||
50 | 49 | | |||
50 | int perProjectConfigPages() const override; | ||||
51 | KDevelop::ConfigPage* perProjectConfigPage(int number, const KDevelop::ProjectConfigOptions& options, QWidget* parent) override; | ||||
52 | | ||||
51 | private Q_SLOTS: | 53 | private Q_SLOTS: | ||
52 | /** | 54 | /** | ||
53 | * Opens the UploadDialog with the previously selected file as root. | 55 | * Opens the UploadDialog with the previously selected file as root. | ||
54 | * Executed from context-menu | 56 | * Executed from context-menu | ||
55 | */ | 57 | */ | ||
56 | void upload(); | 58 | void upload(); | ||
57 | 59 | | |||
58 | /** | 60 | /** | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |