Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/Module.h
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef MODULE_H | 21 | #ifndef MODULE_H | ||
22 | #define MODULE_H | 22 | #define MODULE_H | ||
23 | 23 | | |||
24 | #include <KCModule> | 24 | #include <KCModule> | ||
25 | #include <QMap> | ||||
25 | 26 | | |||
26 | namespace Ui { | 27 | namespace Ui { | ||
27 | class Module; | 28 | class Module; | ||
28 | } | 29 | } | ||
29 | 30 | | |||
30 | class Module : public KCModule | 31 | class Module : public KCModule | ||
31 | { | 32 | { | ||
32 | Q_OBJECT | 33 | Q_OBJECT | ||
Show All 26 Lines | 34 | public: | |||
59 | */ | 60 | */ | ||
60 | void defaults() Q_DECL_OVERRIDE; | 61 | void defaults() Q_DECL_OVERRIDE; | ||
61 | 62 | | |||
62 | private: | 63 | private: | ||
63 | void loadSoftware(); | 64 | void loadSoftware(); | ||
64 | void loadHardware(); | 65 | void loadHardware(); | ||
65 | 66 | | |||
66 | /** | 67 | /** | ||
68 | * Copies the software and hardware information to clipboard. | ||||
69 | * The label language is currently English only | ||||
70 | * because the Plasma development language is English. | ||||
rkflx: Is this comment still accurate? | |||||
71 | */ | ||||
72 | void copyToClipboard(); | ||||
dhaumann: For future: Please pretty much always prefer QVector over QList. | |||||
73 | | ||||
74 | QMap<QString, QString> collectedData; | ||||
75 | | ||||
76 | /** | ||||
67 | * UI | 77 | * UI | ||
68 | */ | 78 | */ | ||
69 | Ui::Module *ui; | 79 | Ui::Module *ui; | ||
70 | 80 | | |||
71 | /** \returns Version of plasmashell or an empty string when none was found */ | 81 | /** \returns Version of plasmashell or an empty string when none was found */ | ||
72 | QString plasmaVersion() const; | 82 | QString plasmaVersion() const; | ||
73 | }; | 83 | }; | ||
74 | 84 | | |||
75 | #endif // MODULE_H | 85 | #endif // MODULE_H |
Is this comment still accurate?