• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • kde-4.14
  • applications
  • konsole
  • src
ProfileWriter.h
Go to the documentation of this file.
1 /*
2  This source file is part of Konsole, a terminal emulator.
3 
4  Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
5 
6  This program 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 2 of the License, or
9  (at your option) any later version.
10 
11  This program 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 this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301 USA.
20 */
21 
22 #ifndef PROFILEWRITER_H
23 #define PROFILEWRITER_H
24 
25 #include "Profile.h"
26 
27 class KConfig;
28 
29 namespace Konsole
30 {
32 class ProfileWriter
33 {
34 public:
35  virtual ~ProfileWriter() {}
41  virtual QString getPath(const Profile::Ptr profile) = 0;
47  virtual bool writeProfile(const QString& path , const Profile::Ptr profile) = 0;
48 };
50 class KONSOLEPRIVATE_EXPORT KDE4ProfileWriter : public ProfileWriter
51 {
52 public:
53  virtual QString getPath(const Profile::Ptr profile);
54  virtual bool writeProfile(const QString& path , const Profile::Ptr profile);
55 
56 private:
57  void writeProperties(KConfig& config, const Profile::Ptr profile,
58  const Profile::PropertyInfo* properties);
59 };
60 }
61 
62 #endif // PROFILEWRITER_H
Konsole::ProfileWriter::writeProfile
virtual bool writeProfile(const QString &path, const Profile::Ptr profile)=0
Writes the properties and values from profile to the file specified by path.
Konsole::ProfileWriter::getPath
virtual QString getPath(const Profile::Ptr profile)=0
Returns a suitable path-name for writing profile to.
Konsole::ProfileWriter::~ProfileWriter
virtual ~ProfileWriter()
Definition: ProfileWriter.h:35
QString
Konsole::KDE4ProfileWriter
Writes a KDE 4 .profile file.
Definition: ProfileWriter.h:50
Konsole::Profile::Ptr
KSharedPtr< Profile > Ptr
Definition: Profile.h:67
KONSOLEPRIVATE_EXPORT
#define KONSOLEPRIVATE_EXPORT
Definition: konsole_export.h:33
Profile.h
Konsole::ProfileWriter
Interface for all classes which can write profile settings to a file.
Definition: ProfileWriter.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal