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

krfb

  • sources
  • kde-4.14
  • kdenetwork
  • krfb
  • krfb
connectiondialog.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2010 Collabora Ltd <info@collabora.co.uk>
3  @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
4  Copyright (C) 2004 Nadeem Hasan <nhasan@kde.org>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (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 GNU
14  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; see the file COPYING. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef CONNECTIONDIALOG_H
23 #define CONNECTIONDIALOG_H
24 
25 #include "ui_connectionwidget.h"
26 #include <KDialog>
27 
28 template <typename UI>
29 class ConnectionDialog : public KDialog
30 {
31 public:
32  ConnectionDialog(QWidget *parent);
33  ~ConnectionDialog() {};
34 
35  void setAllowRemoteControl(bool b);
36  bool allowRemoteControl();
37 
38 protected:
39  QWidget *m_connectWidget;
40  UI m_ui;
41 };
42 
43 template <typename UI>
44 void ConnectionDialog<UI>::setAllowRemoteControl(bool b)
45 {
46  m_ui.cbAllowRemoteControl->setChecked(b);
47  m_ui.cbAllowRemoteControl->setVisible(b);
48 }
49 
50 template <typename UI>
51 bool ConnectionDialog<UI>::allowRemoteControl()
52 {
53  return m_ui.cbAllowRemoteControl->isChecked();
54 }
55 
56 //*********
57 
58 class InvitationsConnectionDialog : public ConnectionDialog<Ui::ConnectionWidget>
59 {
60  Q_OBJECT
61 public:
62  InvitationsConnectionDialog(QWidget *parent);
63  void setRemoteHost(const QString & host);
64 };
65 
66 //*********
67 
68 #ifdef KRFB_WITH_TELEPATHY_TUBES
69 # include "ui_tubesconnectionwidget.h"
70 
71 class TubesConnectionDialog : public ConnectionDialog<Ui::TubesConnectionWidget>
72 {
73  Q_OBJECT
74 public:
75  TubesConnectionDialog(QWidget *parent);
76  void setContactName(const QString & name);
77 };
78 
79 #endif // KRFB_WITH_TELEPATHY_TUBES
80 
81 #endif // CONNECTIONDIALOG_H
82 
QWidget
ConnectionDialog::ConnectionDialog
ConnectionDialog(QWidget *parent)
Definition: connectiondialog.cpp:32
InvitationsConnectionDialog::InvitationsConnectionDialog
InvitationsConnectionDialog(QWidget *parent)
Definition: connectiondialog.cpp:60
ConnectionDialog::allowRemoteControl
bool allowRemoteControl()
Definition: connectiondialog.h:51
InvitationsConnectionDialog::setRemoteHost
void setRemoteHost(const QString &host)
Definition: connectiondialog.cpp:65
ConnectionDialog::setAllowRemoteControl
void setAllowRemoteControl(bool b)
Definition: connectiondialog.h:44
ConnectionDialog
Definition: connectiondialog.h:29
InvitationsConnectionDialog
Definition: connectiondialog.h:58
ConnectionDialog::m_connectWidget
QWidget * m_connectWidget
Definition: connectiondialog.h:39
QString
ConnectionDialog::m_ui
UI m_ui
Definition: connectiondialog.h:40
ConnectionDialog::~ConnectionDialog
~ConnectionDialog()
Definition: connectiondialog.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krfb

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

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