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

krdc

  • sources
  • kde-4.12
  • kdenetwork
  • krdc
  • nx
nxclientthread.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2008 David Gross <gdavid.devel@gmail.com>
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 NXCLIENTTHREAD_H
25 #define NXCLIENTTHREAD_H
26 
27 #include <KDebug>
28 #include <KLocale>
29 #include <KUrl>
30 
31 #include "remoteview.h"
32 
33 #include <QThread>
34 #include <QMutex>
35 #include <QString>
36 
37 #include <string>
38 
39 #include <nxcl/nxclientlib.h>
40 #include <nxcl/nxdata.h>
41 
42 class NxCallbacks;
43 
44 class NxClientThread: public QThread
45 {
46  Q_OBJECT
47 
48 public:
49  explicit NxClientThread(QObject *parent = 0);
50  ~NxClientThread();
51 
52  void setCallbacks(NxCallbacks *callbacks);
53  void setHost(const QString &host);
54  void setPort(int port);
55  void setUserName(const QString &userName);
56  void setPassword(const QString &password);
57  void setResolution(int width, int height);
58  void setDesktopType(const QString &desktopType);
59  void setKeyboardLayout(const QString &keyboardLayout);
60  void setPrivateKey(const QString &privateKey);
61  void setSuspended(bool suspended);
62  void setId(const QString &id);
63  void stop();
64  void startSession();
65 
66 protected:
67  void run();
68 
69 signals:
75  void hasXid(int xid);
76 
77 private:
78  nxcl::NXClientLib m_client;
79  nxcl::NXSessionData m_data;
80 
81  std::string m_host;
82  int m_port;
83  std::string m_privateKey;
84  int m_xid;
85 
86  bool m_stopped;
87  QMutex m_mutex;
88 };
89 
90 #endif
NxClientThread
Definition: nxclientthread.h:44
NxClientThread::setPrivateKey
void setPrivateKey(const QString &privateKey)
Definition: nxclientthread.cpp:128
NxClientThread::setResolution
void setResolution(int width, int height)
Definition: nxclientthread.cpp:108
NxClientThread::setId
void setId(const QString &id)
Definition: nxclientthread.cpp:141
NxClientThread::setCallbacks
void setCallbacks(NxCallbacks *callbacks)
Definition: nxclientthread.cpp:76
NxClientThread::setDesktopType
void setDesktopType(const QString &desktopType)
Definition: nxclientthread.cpp:114
NxClientThread::startSession
void startSession()
Definition: nxclientthread.cpp:195
QObject
NxClientThread::setKeyboardLayout
void setKeyboardLayout(const QString &keyboardLayout)
Definition: nxclientthread.cpp:121
NxClientThread::setSuspended
void setSuspended(bool suspended)
Definition: nxclientthread.cpp:135
NxClientThread::setPassword
void setPassword(const QString &password)
Definition: nxclientthread.cpp:101
NxClientThread::setHost
void setHost(const QString &host)
Definition: nxclientthread.cpp:81
NxClientThread::stop
void stop()
Definition: nxclientthread.cpp:148
remoteview.h
NxClientThread::run
void run()
Definition: nxclientthread.cpp:154
NxClientThread::setPort
void setPort(int port)
Definition: nxclientthread.cpp:88
NxClientThread::NxClientThread
NxClientThread(QObject *parent=0)
Definition: nxclientthread.cpp:34
NxCallbacks
Definition: nxcallbacks.h:35
NxClientThread::hasXid
void hasXid(int xid)
Emitted when the X Window ID of the main NX window is received.
NxClientThread::setUserName
void setUserName(const QString &userName)
Definition: nxclientthread.cpp:94
QThread
NxClientThread::~NxClientThread
~NxClientThread()
Definition: nxclientthread.cpp:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:04 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