ipsservices/nmipssettings/inc/nmipssettingsmanagerfactory.h
author hgs
Thu, 10 Jun 2010 16:14:05 +0300
changeset 44 c2d07d913565
parent 18 578830873419
permissions -rw-r--r--
201023

/*
* Copyright (c) 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:
*
*/

#ifndef NMIPSSETTINGSMANAGERFACTORY_H
#define NMIPSSETTINGSMANAGERFACTORY_H

class CEmailAccounts;
class TImapAccount;
class TPopAccount;

class NmIpsSettingsManagerBase;
class NmId;

class NmIpsSettingsManagerFactory
{
public:
    static NmIpsSettingsManagerBase *createSettingManager(const NmId &mailboxId);
    
private:
    NmIpsSettingsManagerFactory() {};
    ~NmIpsSettingsManagerFactory() {};
    
    static bool isImap4MailAccount(CEmailAccounts &emailAccounts, 
        const NmId &mailboxId, TImapAccount &imapAccount);
    
    static bool isPop3MailAccount(CEmailAccounts &emailAccounts, 
        const NmId &mailboxId,  TPopAccount &popAccount);
};

#endif // NMIPSSETTINGSMANAGERFACTORY_H