Qx v0.5.7
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::LinkDesktopEntry Class Reference

The LinkDesktopEntry class represents the a Link type desktop entry. More...

#include <qx/linux/qx-linkdesktopentry.h>

Collaboration diagram for Qx::LinkDesktopEntry:
[legend]

Public Member Functions

 LinkDesktopEntry ()
 
QString extension () const override
 
void setUrl (const QUrl &url)
 
QString toString () const override
 
QString type () const override
 
QUrl url ()
 
- Public Member Functions inherited from Qx::DesktopEntry
QString comment () const
 
QString genericName () const
 
QString icon () const
 
bool isHidden () const
 
bool isNoDisplay () const
 
QString name () const
 
QStringList notShowIn () const
 
QStringList onlyShowIn () const
 
void setComment (const QString &comment)
 
void setGenericName (const QString &name)
 
void setHidden (bool hidden)
 
void setIcon (const QString &icon)
 
void setName (const QString &name)
 
void setNoDisplay (bool display)
 
void setNotShowIn (const QStringList &notIn)
 
void setOnlyShowIn (const QStringList &showIn)
 

Additional Inherited Members

- Static Public Member Functions inherited from Qx::DesktopEntry
static IoOpReport writeToDisk (QString path, const DesktopEntry *entry)
 
- Static Protected Member Functions inherited from Qx::DesktopEntry
static QString keyValueString (const QString &key, bool value)
 
static QString keyValueString (const QString &key, const char *value)
 
static QString keyValueString (const QString &key, const QString &value)
 
static QString keyValueString (const QString &key, const QStringList &value)
 

Detailed Description

See also
DesktopEntry.

Constructor & Destructor Documentation

◆ LinkDesktopEntry()

Qx::LinkDesktopEntry::LinkDesktopEntry ( )

Constructs an empty link desktop entry.

Member Function Documentation

◆ extension()

QString Qx::LinkDesktopEntry::extension ( ) const
overridevirtual

Returns the proper extension of the entry that corresponds to its type.

Implements Qx::DesktopEntry.

◆ setUrl()

void Qx::LinkDesktopEntry::setUrl ( const QUrl & url)

Sets the URL this linked to by this entry to url.

◆ toString()

QString Qx::LinkDesktopEntry::toString ( ) const
overridevirtual

Composites the desktop entry into its string form, as would be found in an entry file on disk.

Warning
If this string is later written to disk, you must ensure that the correct extension is used in correspondence with the entry's type.
See also
extension(), and type().

Reimplemented from Qx::DesktopEntry.

◆ type()

QString Qx::LinkDesktopEntry::type ( ) const
overridevirtual

Returns the type string of the entry.

Implements Qx::DesktopEntry.

◆ url()

QUrl Qx::LinkDesktopEntry::url ( )

Returns the URL this entry links to.


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