Page MenuHomePhorge

kolabaccount.h
No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None

kolabaccount.h

/*
* Copyright (C) 2012 Christian Mollekopf <mollekopf@kolabsys.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef KOLABACCOUNT_H
#define KOLABACCOUNT_H
#include <QObject>
#include <formathelpers.h>
#include <kimap/loginjob.h>
#include <kimap/listjob.h>
#include <kmime/kmime_message.h>
#include "object.h"
namespace KIMAP {
class Session;
}
class KolabAccount: public QObject
{
Q_OBJECT
public:
explicit KolabAccount(QObject* parent = 0);
void setHost(const QString &host, qint16 port);
void setCredentials(const QString &username, const QString &pw);
void cleanAccount();
void setupFolders();
void appendObject(Object obj, const QString &folder);
void createFolder(const QString &name, Kolab::FolderType folderType);
void createFolder(const QString &name, const QByteArray &annotation);
void setDryRun(bool);
void logout();
private slots:
void mailBoxesReceived(const QList<KIMAP::MailBoxDescriptor> &descriptors, const QList< QList< QByteArray > > &flags);
private:
void init();
KIMAP::Session *mSession;
QString mHost;
int mPort;
QString mUsername;
QString mPw;
KIMAP::LoginJob::EncryptionMode mEncryptionMode;
KIMAP::LoginJob::AuthenticationMode mAuthenticationMode;
QList<KIMAP::MailBoxDescriptor> mMailboxes;
QList<KIMAP::MailBoxDescriptor> mPersonalNamespaces;
QList<KIMAP::MailBoxDescriptor> mExcludedNamespaces;
QStringList mFolders;
QStringList mCapabilities;
bool mDryRun;
};
#endif // KOLABACCOUNT_H

File Metadata

Mime Type
text/x-c++
Expires
Mon, Apr 6, 12:57 AM (5 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831779
Default Alt Text
kolabaccount.h (2 KB)

Event Timeline