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 
QLanguage::m_list
QMap< QString, QStringList > m_list
Definition: QLanguage.hpp:58
QLanguage::names
QStringList names(const QString &key)
Method for getting names from key.
Definition: QLanguage.cpp:74
QMap
Definition: qwt_compass.h:19
QLanguage::keys
QStringList keys()
Method for getting available keys.
Definition: QLanguage.cpp:69
QLanguage::QLanguage
QLanguage(QIODevice *device=nullptr, QObject *parent=nullptr)
Constructor.
Definition: QLanguage.cpp:8
QLanguage::m_loaded
bool m_loaded
Definition: QLanguage.hpp:53
QLanguage::load
bool load(QIODevice *device)
Method for parsing.
Definition: QLanguage.cpp:16
QLanguage::isLoaded
bool isLoaded() const
Method for getting is object loaded.
Definition: QLanguage.cpp:79
QLanguage
Definition: QLanguage.hpp:14


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45