summaryrefslogtreecommitdiff
path: root/src/moshortcut.h
blob: 33346bb9eb2d5b618f498e85c3346b7ce26b01fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MODORGANIZER_MOSHORTCUT_INCLUDED
#define MODORGANIZER_MOSHORTCUT_INCLUDED

#include <QString>

class MOShortcut
{
public:
  MOShortcut(const QString& link={});

  /// true iff intialized using a valid moshortcut link
  bool isValid() const { return m_valid; }

  bool hasInstance() const { return m_hasInstance; }

  bool hasExecutable() const { return m_hasExecutable; }

  const QString& instance() const { return m_instance; }

  const QString& executable() const { return m_executable; }

  QString toString() const;

private:
  QString m_instance;
  QString m_executable;
  bool m_valid;
  bool m_hasInstance;
  bool m_hasExecutable;
};

#endif  // MODORGANIZER_MOSHORTCUT_INCLUDED