Changeset View
Changeset View
Standalone View
Standalone View
plugins/externalscript/externalscriptplugin.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
65 | 65 | | |||
66 | /** | 66 | /** | ||
67 | * Returns config group to store all settings for this plugin in. | 67 | * Returns config group to store all settings for this plugin in. | ||
68 | */ | 68 | */ | ||
69 | KConfigGroup getConfig() const; | 69 | KConfigGroup getConfig() const; | ||
70 | 70 | | |||
71 | void saveItem(const ExternalScriptItem* item); | 71 | void saveItem(const ExternalScriptItem* item); | ||
72 | 72 | | |||
73 | public slots: | 73 | public Q_SLOTS: | ||
74 | void executeScriptFromActionData() const; | 74 | void executeScriptFromActionData() const; | ||
75 | 75 | | |||
76 | /** | 76 | /** | ||
77 | * Executes the command (Used by the shell-integration) | 77 | * Executes the command (Used by the shell-integration) | ||
78 | * */ | 78 | * */ | ||
79 | Q_SCRIPTABLE bool executeCommand(QString command, QString workingDirectory) const; | 79 | Q_SCRIPTABLE bool executeCommand(QString command, QString workingDirectory) const; | ||
80 | 80 | | |||
81 | /** | 81 | /** | ||
82 | * Executes the command synchronously and returns the output text (Used by the shell-integration) | 82 | * Executes the command synchronously and returns the output text (Used by the shell-integration) | ||
83 | * */ | 83 | * */ | ||
84 | Q_SCRIPTABLE QString executeCommandSync(QString command, QString workingDirectory) const; | 84 | Q_SCRIPTABLE QString executeCommandSync(QString command, QString workingDirectory) const; | ||
85 | 85 | | |||
86 | private slots: | 86 | private Q_SLOTS: | ||
87 | void rowsRemoved( const QModelIndex& parent, int start, int end ); | 87 | void rowsRemoved( const QModelIndex& parent, int start, int end ); | ||
88 | void rowsInserted( const QModelIndex& parent, int start, int end ); | 88 | void rowsInserted( const QModelIndex& parent, int start, int end ); | ||
89 | void executeScriptFromContextMenu() const; | 89 | void executeScriptFromContextMenu() const; | ||
90 | 90 | | |||
91 | private: | 91 | private: | ||
92 | /// @param row row in the model for the item to save | 92 | /// @param row row in the model for the item to save | ||
93 | void saveItemForRow( int row ); | 93 | void saveItemForRow( int row ); | ||
94 | 94 | | |||
Show All 10 Lines |