Changeset View
Changeset View
Standalone View
Standalone View
src/global.h
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the | 15 | * along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef GLOBAL_H | 20 | #ifndef GLOBAL_H | ||
21 | #define GLOBAL_H | 21 | #define GLOBAL_H | ||
22 | 22 | | |||
23 | #include <QDBusInterface> | ||||
24 | #include <QDBusConnectionInterface> | ||||
23 | #include <QList> | 25 | #include <QList> | ||
24 | #include <QUrl> | 26 | #include <QUrl> | ||
25 | 27 | | |||
26 | namespace Dolphin { | 28 | namespace Dolphin { | ||
27 | QList<QUrl> validateUris(const QStringList& uriList); | 29 | QList<QUrl> validateUris(const QStringList& uriList); | ||
28 | 30 | | |||
29 | /** | 31 | /** | ||
30 | * Returns the home url which is defined in General Settings | 32 | * Returns the home url which is defined in General Settings | ||
Show All 13 Lines | |||||
44 | 46 | | |||
45 | /** | 47 | /** | ||
46 | * Attaches URLs to an existing Dolphin instance if possible. | 48 | * Attaches URLs to an existing Dolphin instance if possible. | ||
47 | * Returns true if URLs were successfully attached | 49 | * Returns true if URLs were successfully attached | ||
48 | */ | 50 | */ | ||
49 | bool attachToExistingInstance(const QList<QUrl>& inputUrls, bool openFiles, bool splitView, const QString& preferredService = QString()); | 51 | bool attachToExistingInstance(const QList<QUrl>& inputUrls, bool openFiles, bool splitView, const QString& preferredService = QString()); | ||
50 | 52 | | |||
51 | /** | 53 | /** | ||
54 | * Returns a QVector with full data about all currently-running GUI-capable | ||||
feverfew: `full data` is ambiguous here. What this function does is just return all GUI capable instances… | |||||
55 | * Dolphin instances | ||||
56 | */ | ||||
elvisangelaccio: I'd call this function `dolphinGuiInstances`. | |||||
57 | QVector<QPair<QSharedPointer<QDBusInterface>, QStringList>> dolphinInstanceData(const QString& preferredService); | ||||
58 | | ||||
59 | /** | ||||
52 | * TODO: Move this somewhere global to all KDE apps, not just Dolphin | 60 | * TODO: Move this somewhere global to all KDE apps, not just Dolphin | ||
53 | */ | 61 | */ | ||
54 | const int VERTICAL_SPACER_HEIGHT = 18; | 62 | const int VERTICAL_SPACER_HEIGHT = 18; | ||
55 | } | 63 | } | ||
56 | 64 | | |||
57 | #endif //GLOBAL_H | 65 | #endif //GLOBAL_H |
full data is ambiguous here. What this function does is just return all GUI capable instances, and leaves the QStringList empty, (which is space to hold all the URL's an instance currently has open, but isn't filled by this function).