• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Application.h

Go to the documentation of this file.
00001 /*
00002     Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301  USA.
00018 */
00019 
00020 #ifndef APPLICATION_H
00021 #define APPLICATION_H
00022 
00023 // KDE 
00024 #include <KUniqueApplication>
00025 
00026 // Konsole
00027 #include "Profile.h"
00028 
00029 class KCmdLineArgs;
00030 
00031 namespace Konsole
00032 {
00033 class ProfileList;
00034 class ViewManager;
00035 class MainWindow;
00036 class Session;
00037 
00049 class Application : public KUniqueApplication
00050 {
00051 Q_OBJECT
00052 
00053 public:
00055 #ifdef Q_WS_X11
00056     Application(Display* display , Qt::HANDLE visual, Qt::HANDLE colormap);
00057 #endif
00058 
00060     Application();
00061     
00062     virtual ~Application();
00063 
00065     virtual int newInstance();
00066 
00072     MainWindow* newMainWindow();
00073 
00075     static Application* self();
00076 
00077 private slots:
00078     Session* createSession(Profile::Ptr profile, const QString& directory , ViewManager* view);
00079     void createWindow(Profile::Ptr profile , const QString& directory);
00080     void detachView(Session* session);
00081 
00082     void toggleBackgroundInstance();
00083 
00084 private:
00085     void init();
00086     void listAvailableProfiles();
00087     void startBackgroundMode(MainWindow* window);
00088     bool processHelpArgs(KCmdLineArgs* args);
00089     MainWindow* processWindowArgs(KCmdLineArgs* args);
00090     void processProfileSelectArgs(KCmdLineArgs* args,MainWindow* window);
00091     void processProfileChangeArgs(KCmdLineArgs* args,MainWindow* window);
00092 
00093     KCmdLineArgs*   _arguments;
00094     ProfileList*    _sessionList;
00095     
00096     MainWindow* _backgroundInstance;
00097 };
00098 
00099 }
00100 #endif //APPLICATION_H

Konsole

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

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal