QLanguage.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Qt
4 #include <QObject> // Required for inheritance
5 #include <QString>
6 #include <QMap>
7 
8 class QIODevice;
9 
14 class QLanguage : public QObject
15 {
16  Q_OBJECT
17 
18 public:
19 
24  explicit QLanguage(QIODevice* device=nullptr, QObject* parent=nullptr);
25 
31  bool load(QIODevice* device);
32 
36  QStringList keys();
37 
44  QStringList names(const QString& key);
45 
49  bool isLoaded() const;
50 
51 private:
52 
53  bool m_loaded;
54 
55  QMap<
56  QString,
57  QStringList
58  > m_list;
59 
60 };
61 
bool load(QIODevice *device)
Method for parsing.
Definition: QLanguage.cpp:16
bool isLoaded() const
Method for getting is object loaded.
Definition: QLanguage.cpp:79
QStringList keys()
Method for getting available keys.
Definition: QLanguage.cpp:69
bool m_loaded
Definition: QLanguage.hpp:53
QLanguage(QIODevice *device=nullptr, QObject *parent=nullptr)
Constructor.
Definition: QLanguage.cpp:8
QStringList names(const QString &key)
Method for getting names from key.
Definition: QLanguage.cpp:74
QMap< QString, QStringList > m_list
Definition: QLanguage.hpp:58


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:01:38