emailservices/nmutilities/inc/emailmailboxinfo_p.h
changeset 23 2dc6caa42ec3
child 27 9ba4404ef423
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
       
     1 /*
       
     2  * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  mailbox branding resource reader
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef MAILBOXINFO_P_H_
       
    19 #define MAILBOXINFO_P_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QMap>
       
    23 class XQSettingsManager;
       
    24 class XQCentralRepositorySettingsKey;
       
    25 
       
    26 class EmailMailboxInfoPrivate : public QObject
       
    27 {
       
    28 Q_OBJECT
       
    29 
       
    30 private:
       
    31     
       
    32     static EmailMailboxInfoPrivate *getInstance();
       
    33     static void releaseInstance(EmailMailboxInfoPrivate *&instance);
       
    34     
       
    35     EmailMailboxInfoPrivate();
       
    36     ~EmailMailboxInfoPrivate();
       
    37     
       
    38     QString name(const QVariant &identifier);
       
    39     QString icon(const QVariant &identifier);
       
    40     
       
    41     void processCenRepRecords(const QString &brandingId);
       
    42     quint8 getCurrentCountryL() const;
       
    43     bool verifyTimeZone() const;
       
    44     void verifyMailAccountName(QString &brandingName) const;
       
    45 
       
    46     static EmailMailboxInfoPrivate *mSelf;
       
    47     static qint32 mReferenceCount;
       
    48 
       
    49     XQSettingsManager *mSettingsManager;
       
    50     
       
    51     /*!
       
    52          holds domain name for WLB
       
    53      */
       
    54     QString mWlbDomainName;
       
    55     
       
    56     /*!
       
    57          temporary store for domain name to avoid additional cenrep scan
       
    58      */
       
    59     QString mTempDomain;
       
    60     
       
    61     /*!
       
    62          temporary store for icon and name branding variables to avoid additional cenrep scan
       
    63      */
       
    64     QString mTempIcon;
       
    65     QString mTempName;
       
    66 
       
    67     /*! 
       
    68          information about success or failure during resource file load
       
    69      */
       
    70     bool mIsResourceLoaded;
       
    71     
       
    72     /*!
       
    73          Map of already imported branding keys
       
    74      */
       
    75     QMap<unsigned long int, QString> mBrandingDataMap;
       
    76    
       
    77     friend class EmailMailboxInfo;
       
    78     friend class TestEmailMailboxInfoPrivate;
       
    79 };
       
    80 
       
    81 #endif /* MAILBOXINFO_P_H_ */