Unity 8
DesktopFileHandler Class Reference

#include <plugins/Unity/Launcher/desktopfilehandler.h>

Inherits QObject.

Public Member Functions

 DesktopFileHandler (const QString &appId=QString(), QObject *parent=nullptr)
 
QString appId () const
 
void setAppId (const QString &appId)
 
bool isValid () const
 
QString filename () const
 
QString displayName () const
 
QString icon () const
 

Detailed Description

When an object of this class is created or whenever setAppId(appId) is called, this will search for a .desktop file matching the give appId. If a file is found, isValid() will return true and the other methods return the contents of the .desktop file.

Note that this class will consider the user's locale and do a best effort to return localized values.

Definition at line 35 of file desktopfilehandler.h.


The documentation for this class was generated from the following files: