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

krdc

  • sources
  • kde-4.14
  • kdenetwork
  • krdc
  • konsole
konsoleview.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2009 Urs Wolfer <uwolfer @ kde.org>
4 **
5 ** This file is part of KDE.
6 **
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation; either version 2 of the License, or
10 ** (at your option) any later version.
11 **
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU General Public License
18 ** along with this program; see the file COPYING. If not, write to
19 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 ** Boston, MA 02110-1301, USA.
21 **
22 ****************************************************************************/
23 
24 #ifndef KONSOLEVIEW_H
25 #define KONSOLEVIEW_H
26 
27 #include "konsoleview.h"
28 
29 #include "remoteview.h"
30 #include "hostpreferences.h"
31 
32 #include <KConfigGroup>
33 
34 class KonsoleHostPreferences;
35 class TerminalInterface;
36 
37 class KonsoleView : public RemoteView
38 {
39  Q_OBJECT
40 
41 public:
42  explicit KonsoleView(QWidget *parent = 0, const KUrl &url = KUrl(), KConfigGroup configGroup = KConfigGroup());
43 
44  virtual ~KonsoleView();
45 
46  virtual QSize framebufferSize();
47  QSize sizeHint() const;
48 
49  virtual bool isQuitting();
50  virtual bool start();
51  HostPreferences* hostPreferences();
52 
53 public slots:
54  virtual void switchFullscreen(bool on);
55 
56 protected:
57  bool eventFilter(QObject *obj, QEvent *event);
58 
59 private:
60  KonsoleHostPreferences *m_hostPreferences;
61  TerminalInterface* m_terminal;
62  QWidget *m_terminalWidget;
63 };
64 
65 
66 class KonsoleHostPreferences : public HostPreferences
67 {
68  Q_OBJECT
69 public:
70  explicit KonsoleHostPreferences(KConfigGroup configGroup, QObject *parent = 0)
71  : HostPreferences(configGroup, parent) {}
72 
73 protected:
74  virtual QWidget* createProtocolSpecificConfigPage() { return 0; };
75 };
76 
77 #endif // KONSOLEVIEW_H
QEvent
QWidget
KonsoleView::sizeHint
QSize sizeHint() const
Definition: konsoleview.cpp:99
hostpreferences.h
KonsoleView::hostPreferences
HostPreferences * hostPreferences()
Returns the current host preferences of this view.
Definition: konsoleview.cpp:118
KonsoleHostPreferences
Definition: konsoleview.h:66
konsoleview.h
RemoteView
Generic widget that displays a remote framebuffer.
Definition: remoteview.h:59
QObject
HostPreferences::configGroup
KConfigGroup configGroup()
Definition: hostpreferences.cpp:51
RemoteView::url
KUrl url()
Definition: remoteview.cpp:193
KonsoleView::~KonsoleView
virtual ~KonsoleView()
Definition: konsoleview.cpp:74
QSize
KonsoleHostPreferences::KonsoleHostPreferences
KonsoleHostPreferences(KConfigGroup configGroup, QObject *parent=0)
Definition: konsoleview.h:70
HostPreferences
Definition: hostpreferences.h:42
KonsoleView::switchFullscreen
virtual void switchFullscreen(bool on)
Definition: konsoleview.cpp:123
KonsoleView
Definition: konsoleview.h:37
KonsoleView::start
virtual bool start()
Initialize the view (for example by showing configuration dialogs to the user) and start connecting...
Definition: konsoleview.cpp:110
remoteview.h
KonsoleView::framebufferSize
virtual QSize framebufferSize()
Returns the resolution of the remote framebuffer.
Definition: konsoleview.cpp:94
QObject::parent
QObject * parent() const
KonsoleView::isQuitting
virtual bool isQuitting()
Checks whether the view is currently quitting.
Definition: konsoleview.cpp:105
QWidget::event
virtual bool event(QEvent *event)
KonsoleView::eventFilter
bool eventFilter(QObject *obj, QEvent *event)
Definition: konsoleview.cpp:80
KonsoleView::KonsoleView
KonsoleView(QWidget *parent=0, const KUrl &url=KUrl(), KConfigGroup configGroup=KConfigGroup())
Definition: konsoleview.cpp:37
KonsoleHostPreferences::createProtocolSpecificConfigPage
virtual QWidget * createProtocolSpecificConfigPage()
Definition: konsoleview.h:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krdc

Skip menu "krdc"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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