• 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
ProfileReader.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 PROFILEREADER_H
23 #define PROFILEREADER_H
24 
25 #include "Profile.h"
26 
27 class KConfig;
28 
29 namespace Konsole
30 {
32 class ProfileReader
33 {
34 public:
35  virtual ~ProfileReader() {}
37  virtual QStringList findProfiles() {
38  return QStringList();
39  }
50  virtual bool readProfile(const QString& path , Profile::Ptr profile , QString& parentProfile) = 0;
51 };
52 
54 class KDE4ProfileReader : public ProfileReader
55 {
56 public:
57  virtual QStringList findProfiles();
58  virtual bool readProfile(const QString& path , Profile::Ptr profile, QString& parentProfile);
59 private:
60  void readProperties(const KConfig& config, Profile::Ptr profile,
61  const Profile::PropertyInfo* properties);
62 };
63 }
64 
65 #endif // PROFILEREADER_H
Konsole::ProfileReader::readProfile
virtual bool readProfile(const QString &path, Profile::Ptr profile, QString &parentProfile)=0
Attempts to read a profile from path and save the property values described into profile.
Konsole::KDE4ProfileReader::findProfiles
virtual QStringList findProfiles()
Returns a list of paths to profiles which this reader can read.
Definition: ProfileReader.cpp:42
Konsole::ProfileReader::findProfiles
virtual QStringList findProfiles()
Returns a list of paths to profiles which this reader can read.
Definition: ProfileReader.h:37
Konsole::ProfileReader
Interface for all classes which can load profile settings from a file.
Definition: ProfileReader.h:32
QString
QStringList
Konsole::ProfileReader::~ProfileReader
virtual ~ProfileReader()
Definition: ProfileReader.h:35
Konsole::Profile::Ptr
KSharedPtr< Profile > Ptr
Definition: Profile.h:67
Konsole::KDE4ProfileReader
Reads a KDE 4 .profile file.
Definition: ProfileReader.h:54
Profile.h
Konsole::KDE4ProfileReader::readProfile
virtual bool readProfile(const QString &path, Profile::Ptr profile, QString &parentProfile)
Attempts to read a profile from path and save the property values described into profile.
Definition: ProfileReader.cpp:71
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