vmbx/vmbxengine/inc/vmbxemergencycall.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:45:17 +0300
branchRCL_3
changeset 19 7d48bed6ce0c
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009-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:  Class for dealing with Emergency Call
*  Interface   : Private, CVmbxEmergencyCall
*
*/


#ifndef C_VMBXEMERGENCYCALL_H
#define C_VMBXEMERGENCYCALL_H

// INCLUDES
#include <e32base.h>
#include <phclttypes.h>         // from PhoneClient
#include <mphcltemergencycallobserver.h>

// CLASS DECLARATION

/**
*  CVmbxEmergencyCall declaration
*
*  @lib vmbxengine.lib
*/
NONSHARABLE_CLASS( CVmbxEmergencyCall ) : public CBase,
                        public MPhCltEmergencyCallObserver
    {
 public:

    /**
     * Two-phased constructor
     */
    static CVmbxEmergencyCall* NewL();
    
    /**
     * Destructor.
     */
    ~CVmbxEmergencyCall();

    /**
     * Verifies that the given number is not an emergency number.
     *
     * @param aNumber Mailbox number
     * @return ETrue if emergency number
     */
    TBool IsEmergencyNumber( const TDesC& aNumber );
    
private:  // New Functions

    /**
     * C++ default constructor.
     *
     */
    CVmbxEmergencyCall();

    /**
     * C++  Two-phased constructor.
     */
    void ConstructL();

private: // Functions from base classes

    /**
     * Handle dial request completion.
     *
     * @see MPhCltExtPhoneObserver::HandleDialL().
     *
     * @param aEntry Reference to store handler
     */
    void HandleDialL( const TInt aStatus );

    /**
     * Handling of emergency dial result.
     *
     * @param aEntry Reference to store handler
     */
    void HandleEmergencyDialL( const TInt aStatus );
 
    };

#endif  // C_VMBXEMERGENCYCALL_H