Commit a2c8e457 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent c5278fe4
Pipeline #48606 failed with stage
in 9 minutes and 47 seconds
......@@ -77,7 +77,7 @@ private Q_SLOTS:
fakeServer.startAndWait();
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::AppendJob(&session);
auto job = new KIMAP::AppendJob(&session);
job->setContent(content);
job->setFlags(flags);
job->setInternalDate(internaldate);
......
......@@ -64,7 +64,7 @@ private Q_SLOTS:
fakeServer.startAndWait();
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::CapabilitiesJob(&session);
auto job = new KIMAP::CapabilitiesJob(&session);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD response", Continue);
QVERIFY(result);
......
......@@ -53,7 +53,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::CloseJob(&session);
auto job = new KIMAP::CloseJob(&session);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD response", Continue);
QVERIFY(result);
......
......@@ -67,7 +67,7 @@ private Q_SLOTS:
fakeServer.startAndWait();
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::CreateJob(&session);
auto job = new KIMAP::CreateJob(&session);
job->setMailBox(mailbox);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD response", Continue);
......
......@@ -74,7 +74,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::DeleteJob(&session);
auto job = new KIMAP::DeleteJob(&session);
job->setMailBox(mailbox);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD response", Continue);
......
......@@ -57,7 +57,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::EnableJob(&session);
auto job = new KIMAP::EnableJob(&session);
job->setCapabilities(reqCapabilities);
QVERIFY(job->exec());
......
......@@ -76,7 +76,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::ExpungeJob(&session);
auto job = new KIMAP::ExpungeJob(&session);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD response", Continue);
QEXPECT_FAIL("no" , "Expected failure on NO response", Continue);
......
......@@ -43,7 +43,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::ListJob(&session);
auto job = new KIMAP::ListJob(&session);
job->setIncludeUnsubscribed(true);
QVERIFY(job->exec());
......
......@@ -198,7 +198,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::FetchJob(&session);
auto job = new KIMAP::FetchJob(&session);
job->setUidBased(uidBased);
job->setSequenceSet(set);
job->setScope(scope);
......@@ -267,7 +267,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::FetchJob(&session);
auto job = new KIMAP::FetchJob(&session);
job->setUidBased(false);
job->setSequenceSet(KIMAP::ImapSet(1, 2));
job->setScope(scope);
......@@ -331,7 +331,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::FetchJob(&session);
auto job = new KIMAP::FetchJob(&session);
job->setUidBased(false);
job->setSequenceSet(KIMAP::ImapSet(2, 2));
job->setScope(scope);
......
......@@ -13,7 +13,7 @@
#include <QTest>
#include <QDebug>
typedef QMap<QByteArray, QByteArray> MAP;
using MAP = QMap<QByteArray, QByteArray>;
Q_DECLARE_METATYPE(MAP)
class GetMetadataJobTest: public QObject
......@@ -77,7 +77,7 @@ private Q_SLOTS:
KIMAP::Session session(QLatin1String("127.0.0.1"), 5989);
auto *getMetadataJob = new KIMAP::GetMetaDataJob(&session);
auto getMetadataJob = new KIMAP::GetMetaDataJob(&session);
getMetadataJob->setServerCapability(KIMAP::MetaDataJobBase::Metadata);
getMetadataJob->setMailBox(mailbox);
getMetadataJob->setDepth(KIMAP::GetMetaDataJob::AllLevels);
......@@ -130,7 +130,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
//C: A000001 GETMETADATA "Folder1" (/shared)
auto *getMetadataJob = new KIMAP::GetMetaDataJob(&session);
auto getMetadataJob = new KIMAP::GetMetaDataJob(&session);
getMetadataJob->setServerCapability(KIMAP::MetaDataJobBase::Metadata);
getMetadataJob->setMailBox(QStringLiteral("Folder1"));
getMetadataJob->addRequestedEntry("/shared");
......@@ -264,7 +264,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *getMetadataJob = new KIMAP::GetMetaDataJob(&session);
auto getMetadataJob = new KIMAP::GetMetaDataJob(&session);
getMetadataJob->setServerCapability(KIMAP::MetaDataJobBase::Annotatemore);
getMetadataJob->setMailBox(mailbox);
getMetadataJob->addRequestedEntry(entry);
......@@ -300,7 +300,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
//C: A000001 GETANNOTATION "Folder1"
auto *getMetadataJob = new KIMAP::GetMetaDataJob(&session);
auto getMetadataJob = new KIMAP::GetMetaDataJob(&session);
getMetadataJob->setServerCapability(KIMAP::MetaDataJobBase::Annotatemore);
getMetadataJob->setMailBox(QStringLiteral("Folder1"));
QVERIFY(getMetadataJob->exec());
......@@ -336,7 +336,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
//C: A000001 GETANNOTATION "Folder1" ("/comment" "/motd") "value.shared"
auto *getMetadataJob = new KIMAP::GetMetaDataJob( &session);
auto getMetadataJob = new KIMAP::GetMetaDataJob( &session);
getMetadataJob->setServerCapability(KIMAP::MetaDataJobBase::Annotatemore);
getMetadataJob->setMailBox(QStringLiteral("Folder1"));
getMetadataJob->addRequestedEntry("/shared/comment");
......
......@@ -10,7 +10,7 @@
#include <QTest>
typedef QMap<QByteArray, QByteArray> ArrayMap;
using ArrayMap = QMap<QByteArray, QByteArray>;
Q_DECLARE_METATYPE(ArrayMap)
class IdJobTest: public QObject {
......@@ -42,7 +42,7 @@ void testId()
fakeServer.startAndWait();
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::IdJob(&session);
auto job = new KIMAP::IdJob(&session);
const auto keys = values.keys();
for (const QByteArray &key : keys) {
job->setField(key, values.value(key));
......
......@@ -185,11 +185,11 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *select = new KIMAP::SelectJob(&session);
auto select = new KIMAP::SelectJob(&session);
select->setMailBox(expectedMailBox);
QVERIFY(select->exec());
auto *idle = new KIMAP::IdleJob(&session);
auto idle = new KIMAP::IdleJob(&session);
QSignalSpy statsSpy(idle, &KIMAP::IdleJob::mailBoxStats);
QSignalSpy flagsSpy(idle, &KIMAP::IdleJob::mailBoxMessageFlagsChanged);
......@@ -263,11 +263,11 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
const int originalTimeout = session.timeout();
auto *select = new KIMAP::SelectJob(&session);
auto select = new KIMAP::SelectJob(&session);
select->setMailBox(QStringLiteral("INBOX"));
QVERIFY(select->exec());
auto *idle = new KIMAP::IdleJob(&session);
auto idle = new KIMAP::IdleJob(&session);
idle->exec();
QCOMPARE(session.timeout(), originalTimeout);
......
......@@ -51,7 +51,7 @@ void FakeServer::dataAvailable()
{
QMutexLocker locker(&m_mutex);
auto *socket = qobject_cast<QTcpSocket *>(sender());
auto socket = qobject_cast<QTcpSocket *>(sender());
QVERIFY(socket);
int scenarioNumber = m_clientSockets.indexOf(socket);
......
......@@ -86,7 +86,7 @@ SslServer::SslServer(QSsl::SslProtocol protocol, bool waitForStartTls)
void SslServer::incomingConnection(qintptr handle)
{
auto *socket = new QSslSocket();
auto socket = new QSslSocket();
socket->setSocketDescriptor(handle);
socket->setProtocol(mProtocol);
......@@ -120,7 +120,7 @@ void SslServer::sslErrors(const QList<QSslError> &errors)
for (const QSslError &error : errors) {
qWarning() << "Received ssl error: " << error.errorString();
}
auto *socket = qobject_cast<QSslSocket *>(QObject::sender());
auto socket = qobject_cast<QSslSocket *>(QObject::sender());
if (socket) {
socket->disconnectFromHost();
}
......@@ -128,7 +128,7 @@ void SslServer::sslErrors(const QList<QSslError> &errors)
void SslServer::error(QAbstractSocket::SocketError error)
{
auto *socket = qobject_cast<QSslSocket *>(QObject::sender());
auto socket = qobject_cast<QSslSocket *>(QObject::sender());
if (socket) {
qWarning() << socket->errorString();
}
......
......@@ -191,7 +191,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::ListJob(&session);
auto job = new KIMAP::ListJob(&session);
job->setIncludeUnsubscribed(unsubscribed);
QSignalSpy spy(job,
......
......@@ -32,9 +32,9 @@ private Q_SLOTS:
);
fakeServer.startAndWait();
KIMAP::Session *session = new KIMAP::Session(QStringLiteral("127.0.0.1"), 5989);
auto session = new KIMAP::Session(QStringLiteral("127.0.0.1"), 5989);
auto *logout = new KIMAP::LogoutJob(session);
auto logout = new KIMAP::LogoutJob(session);
QVERIFY(logout->exec());
fakeServer.quit();
......@@ -52,9 +52,9 @@ private Q_SLOTS:
);
fakeServer.startAndWait();
KIMAP::Session *session = new KIMAP::Session(QStringLiteral("127.0.0.1"), 5989);
auto session = new KIMAP::Session(QStringLiteral("127.0.0.1"), 5989);
auto *logout = new KIMAP::LogoutJob(session);
auto logout = new KIMAP::LogoutJob(session);
QVERIFY(logout->exec());
fakeServer.quit();
......
......@@ -146,7 +146,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::GetQuotaRootJob(&session);
auto job = new KIMAP::GetQuotaRootJob(&session);
job->setMailBox(mailbox);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD response", Continue);
......
......@@ -58,7 +58,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::RenameJob(&session);
auto job = new KIMAP::RenameJob(&session);
job->setSourceMailBox(mailbox);
job->setDestinationMailBox(newname);
bool result = job->exec();
......
......@@ -14,7 +14,7 @@
#include <QTest>
typedef QPair< KIMAP::SearchJob::SearchCriteria, QByteArray > SearchCriteriaValuePair;
using SearchCriteriaValuePair = QPair<KIMAP::SearchJob::SearchCriteria, QByteArray>;
Q_DECLARE_METATYPE(QList<SearchCriteriaValuePair>)
Q_DECLARE_METATYPE(KIMAP::SearchJob::SearchLogic)
......@@ -90,7 +90,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::SearchJob(&session);
auto job = new KIMAP::SearchJob(&session);
job->setUidBased(uidbased);
job->setSearchLogic(searchLogic);
for (const SearchCriteriaValuePair &pair : qAsConst(searchCriteria)) {
......@@ -180,7 +180,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::SearchJob(&session);
auto job = new KIMAP::SearchJob(&session);
job->setUidBased(uidbased);
job->setTerm(searchTerm);
......
......@@ -103,8 +103,8 @@ private Q_SLOTS:
<< "S: * OK [UIDNEXT 567] Predicted next UID"
<< "S: * OK [HIGHESTMODSEQ 90060115205545359]"
<< "S: * OK [UNSEEN 7] There are some unseen messages in the mailbox"
<< "S: * FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen)"
<< "S: * OK [PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen \\*)] Permanent flags"
<< R"(S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen))"
<< R"(S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Permanent flags)"
<< "S: * VANISHED (EARLIER) 41,43:116,118,120:211,214:540"
<< "S: * 49 FETCH (UID 117 FLAGS (\\Seen \\Answered) MODSEQ (90060115194045001))"
<< "S: * 50 FETCH (UID 119 FLAGS (\\Draft $MDNSent) MODSEQ (90060115194045308))"
......@@ -150,7 +150,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::SelectJob(&session);
auto job = new KIMAP::SelectJob(&session);
job->setCondstoreEnabled(condstoreEnabled);
job->setMailBox(QStringLiteral("INBOX"));
if (lastUidvalidity > -1 && lastModseq > 0) {
......@@ -212,7 +212,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::SelectJob(&session);
auto job = new KIMAP::SelectJob(&session);
job->setMailBox(QStringLiteral("INBOX"));
QVERIFY(job->exec());
......
......@@ -12,7 +12,7 @@
#include <QTest>
typedef QMap<QByteArray, QByteArray> MAP;
using MAP = QMap<QByteArray, QByteArray>;
Q_DECLARE_METATYPE(MAP)
class SetMetadataJobTest: public QObject
......@@ -90,7 +90,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *setMetadataJob = new KIMAP::SetMetaDataJob(&session);
auto setMetadataJob = new KIMAP::SetMetaDataJob(&session);
setMetadataJob->setServerCapability(KIMAP::MetaDataJobBase::Metadata);
setMetadataJob->setMailBox(mailbox);
const auto keys = annotations.keys();
......@@ -136,7 +136,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *setMetadataJob = new KIMAP::SetMetaDataJob(&session);
auto setMetadataJob = new KIMAP::SetMetaDataJob(&session);
setMetadataJob->setServerCapability(KIMAP::MetaDataJobBase::Annotatemore);
setMetadataJob->setMailBox(mailbox);
const auto keys = annotations.keys();
......
......@@ -11,7 +11,7 @@
#include "kimap/session.h"
#include "kimap/statusjob.h"
typedef QList<QPair<QByteArray, qint64>> StatusMap;
using StatusMap = QList<QPair<QByteArray, qint64>>;
Q_DECLARE_METATYPE(StatusMap)
class StatusJobTest: public QObject
......@@ -86,7 +86,7 @@ private Q_SLOTS:
fakeServer.startAndWait();
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::StatusJob(&session);
auto job = new KIMAP::StatusJob(&session);
job->setMailBox(QStringLiteral("INBOX"));
job->setDataItems(dataItems);
bool result = job->exec();
......
......@@ -64,7 +64,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::StoreJob(&session);
auto job = new KIMAP::StoreJob(&session);
job->setUidBased(uidBased);
job->setSequenceSet(KIMAP::ImapSet(uidBased ? uid : id));
job->setFlags(flags);
......
......@@ -56,7 +56,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::SubscribeJob(&session);
auto job = new KIMAP::SubscribeJob(&session);
job->setMailBox(mailbox);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD scenario", Continue);
......
......@@ -135,13 +135,13 @@ private Q_SLOTS:
fakeServer.startAndWait();
KIMAP::Session s(QStringLiteral("127.0.0.1"), 5989);
auto *j1 = new MockJob(&s);
auto j1 = new MockJob(&s);
connect(j1, SIGNAL(result(KJob*)), this, SLOT(jobDone(KJob*)));
auto *j2 = new MockJob(&s);
auto j2 = new MockJob(&s);
connect(j2, SIGNAL(result(KJob*)), this, SLOT(jobDone(KJob*)));
auto *j3 = new MockJob(&s);
auto j3 = new MockJob(&s);
connect(j3, SIGNAL(result(KJob*)), this, SLOT(jobDone(KJob*)));
auto *j4 = new MockJob(&s);
auto j4 = new MockJob(&s);
connect(j4, SIGNAL(result(KJob*)), this, SLOT(jobDone(KJob*)));
j4->start();
......@@ -173,10 +173,10 @@ private Q_SLOTS:
QCOMPARE(s.jobQueueSize(), 0);
auto *j1 = new MockJob(&s);
auto *j2 = new MockJob(&s);
auto *j3 = new MockJob(&s);
auto *j4 = new MockJob(&s);
auto j1 = new MockJob(&s);
auto j2 = new MockJob(&s);
auto j3 = new MockJob(&s);
auto j4 = new MockJob(&s);
connect(j4, SIGNAL(result(KJob*)), &m_eventLoop, SLOT(quit()));
QCOMPARE(s.jobQueueSize(), 0);
......@@ -241,7 +241,7 @@ private Q_SLOTS:
QSignalSpy spyLost(&s, SIGNAL(connectionLost()));
QSignalSpy spyState(&s, SIGNAL(stateChanged(KIMAP::Session::State,KIMAP::Session::State)));
auto *mock = new MockJob(&s);
auto mock = new MockJob(&s);
mock->setCommand("DUMMY");
mock->exec();
......@@ -263,15 +263,15 @@ private Q_SLOTS:
KIMAP::Session s(QStringLiteral("127.0.0.1"), 5989);
s.setTimeout(1);
auto *j1 = new MockJob(&s);
auto j1 = new MockJob(&s);
QSignalSpy spyResult1(j1, SIGNAL(result(KJob*)));
QSignalSpy spyDestroyed1(j1, SIGNAL(destroyed()));
auto *j2 = new MockJob(&s);
auto j2 = new MockJob(&s);
QSignalSpy spyResult2(j2, SIGNAL(result(KJob*)));
QSignalSpy spyDestroyed2(j2, SIGNAL(destroyed()));
auto *j3 = new MockJob(&s);
auto j3 = new MockJob(&s);
QSignalSpy spyResult3(j3, SIGNAL(result(KJob*)));
QSignalSpy spyDestroyed3(j3, SIGNAL(destroyed()));
......@@ -314,7 +314,7 @@ private Q_SLOTS:
QSignalSpy spyLost(&s, SIGNAL(connectionLost()));
QSignalSpy spyState(&s, SIGNAL(stateChanged(KIMAP::Session::State,KIMAP::Session::State)));
auto *mock = new MockJob(&s);
auto mock = new MockJob(&s);
mock->setTimeout(5000);
mock->setCommand("DUMMY");
......
......@@ -56,7 +56,7 @@ private Q_SLOTS:
KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
auto *job = new KIMAP::UnsubscribeJob(&session);
auto job = new KIMAP::UnsubscribeJob(&session);
job->setMailBox(mailbox);
bool result = job->exec();
QEXPECT_FAIL("bad" , "Expected failure on BAD scenario", Continue);
......
......@@ -398,7 +398,7 @@ void FetchJobPrivate::parseBodyStructure(const QByteArray &structure, int &pos,
} else { // multi part
content->contentType()->setMimeType("MULTIPART/MIXED");
while (pos < structure.size() && structure[pos] == '(') {
auto *child = new KMime::Content;
auto child = new KMime::Content;
content->addContent(child);
parseBodyStructure(structure, pos, child);
child->assemble();
......
......@@ -24,13 +24,13 @@ class Session;
struct Response;
class FetchJobPrivate;
typedef QSharedPointer<KMime::Content> ContentPtr;
typedef QMap<QByteArray, ContentPtr> MessageParts;
using ContentPtr = QSharedPointer<KMime::Content>;
using MessageParts = QMap<QByteArray, ContentPtr>;
typedef QSharedPointer<KMime::Message> MessagePtr;
typedef QList<QByteArray> MessageFlags;
using MessagePtr = QSharedPointer<KMime::Message>;
using MessageFlags = QList<QByteArray>;
typedef QPair<QByteArray, QVariant> MessageAttribute;
using MessageAttribute = QPair<QByteArray, QVariant>;
struct Message
{
......
......@@ -28,12 +28,12 @@ public:
/**
* Describes the ids stored in the interval.
*/
typedef qint64 Id;
using Id = qint64;
/**
A list of ImapInterval objects.
*/
typedef QList<ImapInterval> List;
using List = QList<ImapInterval>;
/**
Constructs an interval that covers all positive numbers.
......@@ -131,7 +131,7 @@ public:
/**
* Describes the ids stored in the set.
*/
typedef qint64 Id;
using Id = qint64;
/**
Constructs an empty set.
......
......@@ -346,7 +346,7 @@ void SessionPrivate::socketConnected()
bool willUseSsl = false;
if (!queue.isEmpty()) {
auto *login = qobject_cast<KIMAP::LoginJob *>(queue.first());
auto login = qobject_cast<KIMAP::LoginJob *>(queue.first());
if (login) {
willUseSsl = (login->encryptionMode() == KIMAP::LoginJob::SSLorTLS);
......
......@@ -31,7 +31,7 @@ SessionThread::SessionThread(const QString &hostName, quint16 port)
{
// Just like the Qt docs now recommend, for event-driven threads:
// don't derive from QThread, create one directly and move the object to it.
auto *thread = new QThread();
auto thread = new QThread();
moveToThread(thread);
thread->start();
QMetaObject::invokeMethod(this, &SessionThread::threadInit);
......
......@@ -22,7 +22,7 @@ namespace KIMAP
class KIMAP_EXPORT SessionUiProxy
{
public:
typedef QSharedPointer<SessionUiProxy> Ptr;
using Ptr = QSharedPointer<SessionUiProxy>;
virtual ~SessionUiProxy();
/**
......
......@@ -19,7 +19,7 @@ class Session;
struct Response;
class StoreJobPrivate;
typedef QList<QByteArray> MessageFlags;
using MessageFlags = QList<QByteArray>;
class KIMAP_EXPORT StoreJob : public Job
{
......
......@@ -52,11 +52,11 @@ int main(int argc, char **argv)