Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Krfb
Commits
c5fc5fc6
Commit
c5fc5fc6
authored
Oct 14, 2018
by
Yuri Chornoivan
Browse files
Fix minor EBN issues and typos
parent
54fd606e
Changes
11
Hide whitespace changes
Inline
Side-by-side
cmake/modules/FindLibVNCServer.cmake
View file @
c5fc5fc6
...
...
@@ -38,4 +38,4 @@ ELSE (LIBVNCSERVER_FOUND)
ENDIF
(
LIBVNCSERVER_FIND_REQUIRED
)
ENDIF
(
LIBVNCSERVER_FOUND
)
MARK_AS_ADVANCED
(
LIBVNCSERVER_INCLUDE_DIR LIBVNCSERVER_LIBRARIES
)
\ No newline at end of file
MARK_AS_ADVANCED
(
LIBVNCSERVER_INCLUDE_DIR LIBVNCSERVER_LIBRARIES
)
framebuffers/xcb/xcb_framebufferplugin.cpp
View file @
c5fc5fc6
/* This file is part of the KDE project
@author
Alexey Min <alexey.min@gmail.com>
Copyright (C) 2017
Alexey Min <alexey.min@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
...
...
krfb/connectiondialog.h
View file @
c5fc5fc6
...
...
@@ -59,7 +59,7 @@ class InvitationsConnectionDialog : public ConnectionDialog<Ui::ConnectionWidget
{
Q_OBJECT
public:
InvitationsConnectionDialog
(
QWidget
*
parent
);
explicit
InvitationsConnectionDialog
(
QWidget
*
parent
);
void
setRemoteHost
(
const
QString
&
host
);
};
...
...
krfb/framebuffer.cpp
View file @
c5fc5fc6
...
...
@@ -9,7 +9,7 @@
#include "framebuffer.h"
#include
"
config-krfb.h
"
#include
<
config-krfb.h
>
#include <X11/Xutil.h>
...
...
krfb/invitationsrfbclient.cpp
View file @
c5fc5fc6
...
...
@@ -65,7 +65,7 @@ PendingInvitationsRfbClient::~PendingInvitationsRfbClient()
void
PendingInvitationsRfbClient
::
processNewClient
()
{
QString
host
=
peerAddress
(
m_rfbClient
->
sock
)
+
":"
+
QString
::
number
(
peerPort
(
m_rfbClient
->
sock
));
QString
host
=
peerAddress
(
m_rfbClient
->
sock
)
+
':'
+
QString
::
number
(
peerPort
(
m_rfbClient
->
sock
));
if
(
d
->
askOnConnect
==
false
)
{
...
...
@@ -126,7 +126,7 @@ void PendingInvitationsRfbClient::onSocketActivated()
bool
PendingInvitationsRfbClient
::
checkPassword
(
const
QByteArray
&
encryptedPassword
)
{
QByteArray
password
;
qDebug
()
<<
"about to start autentication"
;
qDebug
()
<<
"about to start aut
h
entication"
;
if
(
InvitationsRfbServer
::
instance
->
allowUnattendedAccess
()
&&
vncAuthCheckPassword
(
InvitationsRfbServer
::
instance
->
unattendedPassword
().
toLocal8Bit
(),
...
...
krfb/invitationsrfbserver.cpp
View file @
c5fc5fc6
...
...
@@ -115,8 +115,8 @@ void InvitationsRfbServer::toggleUnattendedAccess(bool allow)
InvitationsRfbServer
::
InvitationsRfbServer
()
{
m_desktopPassword
=
readableRandomString
(
4
)
+
"-"
+
readableRandomString
(
3
);
m_unattendedPassword
=
readableRandomString
(
4
)
+
"-"
+
readableRandomString
(
3
);
m_desktopPassword
=
readableRandomString
(
4
)
+
'-'
+
readableRandomString
(
3
);
m_unattendedPassword
=
readableRandomString
(
4
)
+
'-'
+
readableRandomString
(
3
);
KConfigGroup
krfbConfig
(
KSharedConfig
::
openConfig
(),
"Security"
);
m_allowUnattendedAccess
=
krfbConfig
.
readEntry
(
"allowUnattendedAccess"
,
QVariant
(
false
)).
toBool
();
...
...
krfb/krfb.kcfg
View file @
c5fc5fc6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kcfg SYSTEM
"http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
<kcfg>
<kcfgfile
/>
<kcfg
xmlns=
"http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd"
>
<kcfgfile
name=
"krfbrc"
/>
<group
name=
"MainWindow"
>
<entry
name=
"startMinimized"
type=
"Bool"
>
<label>
Start minimized
</label>
...
...
krfb/mainwindow.h
View file @
c5fc5fc6
...
...
@@ -8,8 +8,8 @@
version 2 of the License, or (at your option) any later version.
*/
#ifndef
MANAGEINVITATIONSDIALOG
_H
#define
MANAGEINVITATIONSDIALOG
_H
#ifndef
KRFB_MAINWINDOW
_H
#define
KRFB_MAINWINDOW
_H
#include "ui_mainwidget.h"
...
...
krfb/rfbclient.cpp
View file @
c5fc5fc6
...
...
@@ -43,7 +43,7 @@ struct RfbClient::Private
RfbClient
::
RfbClient
(
rfbClientPtr
client
,
QObject
*
parent
)
:
QObject
(
parent
),
d
(
new
Private
(
client
))
{
d
->
remoteAddressString
=
peerAddress
(
d
->
client
->
sock
)
+
":"
+
d
->
remoteAddressString
=
peerAddress
(
d
->
client
->
sock
)
+
':'
+
QString
::
number
(
peerPort
(
d
->
client
->
sock
));
d
->
notifier
=
new
QSocketNotifier
(
client
->
sock
,
QSocketNotifier
::
Read
,
this
);
...
...
krfb/rfbclient.h
View file @
c5fc5fc6
...
...
@@ -97,7 +97,7 @@ protected:
virtual
bool
checkPassword
(
const
QByteArray
&
encryptedPassword
);
/** This method checks if the \a encryptedPassword that was sent from the remote
* user matches the \a password that you have specified localy to be the password
* user matches the \a password that you have specified local
l
y to be the password
* for this connection. This assumes that the standard VNC authentication mechanism
* is used. Returns true if the password matches or false otherwise.
*/
...
...
krfb/sockethelpers.h
View file @
c5fc5fc6
...
...
@@ -20,6 +20,9 @@
Boston, MA 02110-1301, USA.
*/
#ifndef SOCKETHELPERS_H
#define SOCKETHELPERS_H
#include <QString>
QString
peerAddress
(
int
sock
);
...
...
@@ -28,3 +31,4 @@ unsigned short peerPort(int sock);
QString
localAddress
(
int
sock
);
unsigned
short
localPort
(
int
sock
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment