diff -r ecc8def7944a -r 2dc6caa42ec3 emailservices/nmutilities/inc/emailmailboxinfo_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailservices/nmutilities/inc/emailmailboxinfo_p.h Fri May 14 15:41:10 2010 +0300 @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: mailbox branding resource reader + * + */ + +#ifndef MAILBOXINFO_P_H_ +#define MAILBOXINFO_P_H_ + +#include +#include +class XQSettingsManager; +class XQCentralRepositorySettingsKey; + +class EmailMailboxInfoPrivate : public QObject +{ +Q_OBJECT + +private: + + static EmailMailboxInfoPrivate *getInstance(); + static void releaseInstance(EmailMailboxInfoPrivate *&instance); + + EmailMailboxInfoPrivate(); + ~EmailMailboxInfoPrivate(); + + QString name(const QVariant &identifier); + QString icon(const QVariant &identifier); + + void processCenRepRecords(const QString &brandingId); + quint8 getCurrentCountryL() const; + bool verifyTimeZone() const; + void verifyMailAccountName(QString &brandingName) const; + + static EmailMailboxInfoPrivate *mSelf; + static qint32 mReferenceCount; + + XQSettingsManager *mSettingsManager; + + /*! + holds domain name for WLB + */ + QString mWlbDomainName; + + /*! + temporary store for domain name to avoid additional cenrep scan + */ + QString mTempDomain; + + /*! + temporary store for icon and name branding variables to avoid additional cenrep scan + */ + QString mTempIcon; + QString mTempName; + + /*! + information about success or failure during resource file load + */ + bool mIsResourceLoaded; + + /*! + Map of already imported branding keys + */ + QMap mBrandingDataMap; + + friend class EmailMailboxInfo; + friend class TestEmailMailboxInfoPrivate; +}; + +#endif /* MAILBOXINFO_P_H_ */