emailservices/nmutilities/inc/emailmailboxinfo_p.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     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          Map of already imported branding keys
       
    69      */
       
    70     QMap<unsigned long int, QString> mBrandingDataMap;
       
    71    
       
    72     friend class EmailMailboxInfo;
       
    73     friend class TestEmailMailboxInfoPrivate;
       
    74 };
       
    75 
       
    76 #endif /* MAILBOXINFO_P_H_ */