Commit b142c758 authored by Allen Winter's avatar Allen Winter
Browse files

Coding style fixes.

parent 2aaba5e8
/*
Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "dispatchmodeattribute.h"
......@@ -25,7 +25,6 @@
#include <akonadi/attributefactory.h>
#ifndef KDELIBS_STATIC_LIBS
namespace {
......
/*
Copyright (C) 2010 Klarälvdalens Datakonsult AB,
a KDAB Group company, info@kdab.net,
author Tobias Koenig <tokoe@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
Copyright (C) 2010 Klarälvdalens Datakonsult AB,
a KDAB Group company, info@kdab.net,
author Tobias Koenig <tokoe@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "sentactionattribute.h"
......@@ -77,20 +77,20 @@ QVariant SentActionAttribute::Action::value() const
return d->mValue;
}
SentActionAttribute::Action& SentActionAttribute::Action::operator=( const Action &other )
SentActionAttribute::Action &SentActionAttribute::Action::operator=( const Action &other )
{
if ( this != &other )
if ( this != &other ) {
d = other.d;
}
return *this;
}
bool SentActionAttribute::Action::operator==( const Action &other ) const
{
return ((d->mType == other.d->mType) && (d->mValue == other.d->mValue));
return ( ( d->mType == other.d->mType ) && ( d->mValue == other.d->mValue ) );
}
class SentActionAttribute::Private
{
public:
......
/*
Copyright (C) 2010 Klarälvdalens Datakonsult AB,
a KDAB Group company, info@kdab.net,
author Tobias Koenig <tokoe@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
Copyright (C) 2010 Klarälvdalens Datakonsult AB,
a KDAB Group company, info@kdab.net,
author Tobias Koenig <tokoe@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef MAILTRANSPORT_SENTACTIONATTRIBUTE_H
......@@ -52,8 +52,7 @@ class MAILTRANSPORT_EXPORT SentActionAttribute : public Akonadi::Attribute
/**
* Describes the action type.
*/
enum Type
{
enum Type {
Invalid, ///< An invalid action.
MarkAsReplied, ///< The message will be marked as replied.
MarkAsForwarded ///< The message will be marked as forwarded.
......@@ -100,7 +99,7 @@ class MAILTRANSPORT_EXPORT SentActionAttribute : public Akonadi::Attribute
/**
* @internal
*/
Action& operator=( const Action &other );
Action &operator=( const Action &other );
/**
* @internal
......
This diff is collapsed.
/*
Copyright (c) 2010 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
Copyright (c) 2010 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef MAILTRANSPORT_SMTPSESSION_H
......@@ -50,7 +50,7 @@ class SmtpSession : public QObject
void setUseTLS( bool useTLS );
/** Send a message. */
void sendMessage( const KUrl& destination, QIODevice* data );
void sendMessage( const KUrl &destination, QIODevice *data );
/** Returns the error nmeesage, if any. */
QString errorMessage() const;
......
/*
Copyright (c) 2007 Volker Krause <vkrause@kde.org>
Copyright (c) 2007 Volker Krause <vkrause@kde.org>
Based on KMail code by:
Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
Based on KMail code by:
Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "smtpjob.h"
......@@ -173,8 +173,10 @@ void SmtpJob::startSmtpJob()
bool keep = transport()->storePassword();
KPasswordDialog dlg( 0, KPasswordDialog::ShowUsernameLine | KPasswordDialog::ShowKeepPassword );
dlg.setPrompt( i18n( "You need to supply a username and a password to use this SMTP server." ) );
KPasswordDialog dlg( 0,
KPasswordDialog::ShowUsernameLine | KPasswordDialog::ShowKeepPassword );
dlg.setPrompt( i18n( "You need to supply a username and a password "
"to use this SMTP server." ) );
dlg.setKeepPassword( keep );
dlg.addCommentLine( QString(), transport()->name() );
dlg.setUsername( user );
......@@ -239,10 +241,12 @@ void SmtpJob::startSmtpJob()
KIO::Scheduler::assignJobToSlave( d->slave, job );
#else
SmtpSession *session = new SmtpSession( this );
connect( session, SIGNAL(result(MailTransport::SmtpSession*)), SLOT(smtpSessionResult(MailTransport::SmtpSession*)) );
connect( session, SIGNAL(result(MailTransport::SmtpSession*)),
SLOT(smtpSessionResult(MailTransport::SmtpSession*)) );
session->setUseTLS( transport()->encryption() == Transport::EnumEncryption::TLS );
if ( transport()->requiresAuthentication() )
if ( transport()->requiresAuthentication() ) {
session->setSaslMethod( transport()->authenticationTypeString() );
}
session->sendMessage( destination, buffer() );
#endif
......
/*
Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "transportmanager.h"
......@@ -137,13 +137,15 @@ TransportManager::TransportManager()
QDBusConnection::ExportScriptableSlots |
QDBusConnection::ExportScriptableSignals );
QDBusServiceWatcher *watcher = new QDBusServiceWatcher( DBUS_SERVICE_NAME, QDBusConnection::sessionBus(),
QDBusServiceWatcher::WatchForUnregistration, this );
connect( watcher, SIGNAL(serviceUnregistered(QString)), SLOT(dbusServiceUnregistered()) );
QDBusServiceWatcher *watcher =
new QDBusServiceWatcher( DBUS_SERVICE_NAME, QDBusConnection::sessionBus(),
QDBusServiceWatcher::WatchForUnregistration, this );
connect( watcher, SIGNAL(serviceUnregistered(QString)),
SLOT(dbusServiceUnregistered()) );
QDBusConnection::sessionBus().connect( QString(), QString(),
DBUS_INTERFACE_NAME, DBUS_CHANGE_SIGNAL,
this, SLOT(slotTransportsChanged()) );
DBUS_INTERFACE_NAME, DBUS_CHANGE_SIGNAL,
this, SLOT(slotTransportsChanged()) );
d->isMainInstance = QDBusConnection::sessionBus().registerService( DBUS_SERVICE_NAME );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment