• 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
Application.h
Go to the documentation of this file.
1 /*
2  Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301 USA.
18 */
19 
20 #ifndef APPLICATION_H
21 #define APPLICATION_H
22 
23 // KDE
24 #include <KUniqueApplication>
25 
26 // Konsole
27 #include "Profile.h"
28 
29 class KCmdLineArgs;
30 
31 namespace Konsole
32 {
33 class MainWindow;
34 class Session;
35 
48 class Application : public KUniqueApplication
49 {
50  Q_OBJECT
51 
52 public:
54  Application();
55 
56  virtual ~Application();
57 
59  virtual int newInstance();
60 
66  MainWindow* newMainWindow();
67 
68 private slots:
69  void createWindow(Profile::Ptr profile , const QString& directory);
70  void detachView(Session* session);
71 
72  void toggleBackgroundInstance();
73 
74 private:
75  void init();
76  void listAvailableProfiles();
77  void listProfilePropertyInfo();
78  void startBackgroundMode(MainWindow* window);
79  bool processHelpArgs(KCmdLineArgs* args);
80  MainWindow* processWindowArgs(KCmdLineArgs* args);
81  Profile::Ptr processProfileSelectArgs(KCmdLineArgs* args);
82  Profile::Ptr processProfileChangeArgs(KCmdLineArgs* args, Profile::Ptr baseProfile);
83  void processTabsFromFileArgs(KCmdLineArgs* args, MainWindow* window);
84  void createTabFromArgs(KCmdLineArgs* args, MainWindow* window,
85  const QHash<QString, QString>&);
86 
87  MainWindow* _backgroundInstance;
88 };
89 }
90 #endif // APPLICATION_H
Konsole::Session
Represents a terminal session consisting of a pseudo-teletype and a terminal emulation.
Definition: Session.h:78
Konsole::Application::~Application
virtual ~Application()
Definition: Application.cpp:65
Konsole::Application::newInstance
virtual int newInstance()
Creates a new main window and opens a default terminal session.
Definition: Application.cpp:100
Konsole::Application::newMainWindow
MainWindow * newMainWindow()
Creates a new, empty main window and connects to its newSessionRequest() and newWindowRequest() signa...
Definition: Application.cpp:71
Konsole::Application
The Konsole Application.
Definition: Application.h:48
QHash
QString
Konsole::MainWindow
The main window.
Definition: MainWindow.h:57
Konsole::Profile::Ptr
KSharedPtr< Profile > Ptr
Definition: Profile.h:67
KUniqueApplication
Konsole::Application::Application
Application()
Constructs a new Konsole application.
Definition: Application.cpp:44
Profile.h
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