mirror of
https://invent.kde.org/network/krfb
synced 2024-06-28 22:14:41 +00:00
Fix minor EBN issues and typos
This commit is contained in:
parent
54fd606e82
commit
c5fc5fc68e
|
@ -38,4 +38,4 @@ ELSE (LIBVNCSERVER_FOUND)
|
|||
ENDIF (LIBVNCSERVER_FIND_REQUIRED)
|
||||
ENDIF (LIBVNCSERVER_FOUND)
|
||||
|
||||
MARK_AS_ADVANCED(LIBVNCSERVER_INCLUDE_DIR LIBVNCSERVER_LIBRARIES)
|
||||
MARK_AS_ADVANCED(LIBVNCSERVER_INCLUDE_DIR LIBVNCSERVER_LIBRARIES)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* 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
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "framebuffer.h"
|
||||
|
||||
#include "config-krfb.h"
|
||||
#include <config-krfb.h>
|
||||
|
||||
#include <X11/Xutil.h>
|
||||
|
||||
|
|
|
@ -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 authentication";
|
||||
|
||||
if(InvitationsRfbServer::instance->allowUnattendedAccess() && vncAuthCheckPassword(
|
||||
InvitationsRfbServer::instance->unattendedPassword().toLocal8Bit(),
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<?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>
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 locally 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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user