source: calamares/trunk/fuentes/src/modules/keyboard/SetKeyboardLayoutJob.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 18 months ago

sync with github

File size: 2.0 KB
RevLine 
[7538]1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014-2016, Teo Mrnjavac <teo@kde.org>
4 *   Copyright 2014, Kevin Kofler <kevin.kofler@chello.at>
5 *
6 *   Calamares is free software: you can redistribute it and/or modify
7 *   it under the terms of the GNU General Public License as published by
8 *   the Free Software Foundation, either version 3 of the License, or
9 *   (at your option) any later version.
10 *
11 *   Calamares is distributed in the hope that it will be useful,
12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 *   GNU General Public License for more details.
15 *
16 *   You should have received a copy of the GNU General Public License
17 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef SETKEYBOARDLAYOUTJOB_H
21#define SETKEYBOARDLAYOUTJOB_H
22
23#include <Job.h>
24
25
26class SetKeyboardLayoutJob : public Calamares::Job
27{
28    Q_OBJECT
29public:
30    SetKeyboardLayoutJob( const QString& model,
31                          const QString& layout,
32                          const QString& variant,
33                          const QString& xOrgConfFileName,
34                          const QString& convertedKeymapPath,
35                          bool writeEtcDefaultKeyboard );
36
37    QString prettyName() const override;
38    Calamares::JobResult exec() override;
39
40private:
41    QString findConvertedKeymap( const QString& convertedKeymapPath ) const;
42    QString findLegacyKeymap() const;
43    bool writeVConsoleData( const QString& vconsoleConfPath,
44                            const QString& convertedKeymapPath ) const;
45    bool writeX11Data( const QString& keyboardConfPath ) const;
46    bool writeDefaultKeyboardData( const QString& defaultKeyboardPath ) const;
47
48    QString m_model;
49    QString m_layout;
50    QString m_variant;
51    QString m_xOrgConfFileName;
52    QString m_convertedKeymapPath;
53    const bool m_writeEtcDefaultKeyboard;
54};
55
56#endif /* SETKEYBOARDLAYOUTJOB_H */
Note: See TracBrowser for help on using the repository browser.