aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaXDG.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-11-17 14:22:37 -0500
committerKen Moore <ken@pcbsd.org>2014-11-17 14:22:37 -0500
commit788f83e26c935b5faee5ef59b355ab9b3818684a (patch)
treed86084a57da7c4c386e129e8c5b9844808cf9a7a /libLumina/LuminaXDG.h
parentUpdate the XDG categories that are supported, as well as the add a new "Wine"... (diff)
downloadlumina-788f83e26c935b5faee5ef59b355ab9b3818684a.tar.gz
lumina-788f83e26c935b5faee5ef59b355ab9b3818684a.tar.bz2
lumina-788f83e26c935b5faee5ef59b355ab9b3818684a.zip
Update the XDG MIME inplementation to support the draft standards for registering default application (Note: does not use the mime association routines, just defaults)
Lumina-config will now use this backend system for default app registrations, but lumina-open does not use it yet. Also, the defaults tab in lumina-config is still not completely updated yet (resulting in some breakage or unusable buttons). DO NOT BUILD FROM THIS REVISION - Will be fixed very soon but needed a git snapshot
Diffstat (limited to 'libLumina/LuminaXDG.h')
-rw-r--r--libLumina/LuminaXDG.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libLumina/LuminaXDG.h b/libLumina/LuminaXDG.h
index b4c358c2..079ccd3a 100644
--- a/libLumina/LuminaXDG.h
+++ b/libLumina/LuminaXDG.h
@@ -10,6 +10,7 @@
// Desktop File Version Compliance: 1.0 (except "DBusActivatable")
// Icon Theme Compliance: Built in to Qt (QIcon::fromTheme()) with "oxygen" theme default
// *.desktop Exec Compliance Updated: 9/9/2014
+// Mime Application Version Compliance: 1.0.1 (11/14/14) (Skips random *.desktop parsing: ~80% compliant)
//===========================================
@@ -84,6 +85,14 @@ public:
static QString findAppMimeForFile(QString extension);
//Find the file extension for a particular mime-type
static QStringList findFilesForMime(QString mime);
+ // Simplification function for finding all info regarding current mime defaults
+ static QStringList listFileMimeDefaults();
+ //Find the localized comment string for a particular mime-type
+ static QString findMimeComment(QString mime);
+ //Find the default application for a mime-type
+ static QString findDefaultAppForMime(QString mime);
+ //Set the default application for a mime-type
+ static void setDefaultAppForMime(QString mime, QString app);
//Load all the "globs2" mime database files
static QStringList loadMimeFileGlobs2();
};
bgstack15