Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/tasktools.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | |||||
60 | * @param url A URL to a .desktop file or executable, or a preferred:// URL. | 60 | * @param url A URL to a .desktop file or executable, or a preferred:// URL. | ||
61 | * @param fallbackIcon An icon to use when none could be read from the URL or | 61 | * @param fallbackIcon An icon to use when none could be read from the URL or | ||
62 | * otherwise found. | 62 | * otherwise found. | ||
63 | * @returns @c AppData filled in based on the given URL. | 63 | * @returns @c AppData filled in based on the given URL. | ||
64 | */ | 64 | */ | ||
65 | TASKMANAGER_EXPORT AppData appDataFromUrl(const QUrl &url, const QIcon &fallbackIcon = QIcon()); | 65 | TASKMANAGER_EXPORT AppData appDataFromUrl(const QUrl &url, const QIcon &fallbackIcon = QIcon()); | ||
66 | 66 | | |||
67 | /** | 67 | /** | ||
68 | * Fills in and returns an AppData struct based on the given application | ||||
69 | * id. | ||||
70 | * | ||||
71 | * Application ids are .desktop file names sans extension or an absolute | ||||
72 | * path to a .desktop file. | ||||
73 | * | ||||
74 | * NOTE: Unlike appDataFromUrl(), this makes no attempt to procure icon | ||||
75 | * data at this time. | ||||
76 | * | ||||
77 | * @see appDataFromUrl | ||||
78 | * @param appId An application id. | ||||
79 | * @returns @c AppData filled in based on the given application id. | ||||
80 | */ | ||||
81 | TASKMANAGER_EXPORT AppData appDataFromAppId(const QString &appId); | ||||
82 | | ||||
83 | /** | ||||
68 | * Returns an application id for an URL using the preferred:// scheme. | 84 | * Returns an application id for an URL using the preferred:// scheme. | ||
69 | * | 85 | * | ||
70 | * Recognized values for the host component of the URL are: | 86 | * Recognized values for the host component of the URL are: | ||
71 | * - "browser" | 87 | * - "browser" | ||
72 | * - "mailer" | 88 | * - "mailer" | ||
73 | * - "terminal" | 89 | * - "terminal" | ||
74 | * - "windowmanager" | 90 | * - "windowmanager" | ||
75 | * | 91 | * | ||
Show All 40 Lines |