phoneuis/dialer/inc/cdialingextensionobserver.h
branchRCL_3
changeset 9 8871b09be73b
equal deleted inserted replaced
4:c84cf270c54f 9:8871b09be73b
       
     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:  CDialingExtensionObserver provides an observer class for 
       
    15 *               dialingextension plug-in.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CDIALINGEXTENSIONOBSERVER_H
       
    20 #define CDIALINGEXTENSIONOBSERVER_H
       
    21 
       
    22 #include <dialingextensioninterface.h>
       
    23 
       
    24 class CDialingExtensionInterface;
       
    25 class CDialerNumberEntry;
       
    26 class CDialer;
       
    27 
       
    28 
       
    29 NONSHARABLE_CLASS( CDialingExtensionObserver ) : public CBase, public MDialingExtensionObserver
       
    30     {
       
    31 public:
       
    32     
       
    33     /**
       
    34     * Two phase constructor
       
    35     * @param aDialingExtension  Dialer extension. Does not take ownership.
       
    36     * @param aNumberEditor      Number editor. Does not take ownership.
       
    37     * @param aDialer            Dialer. Does not take ownership.
       
    38     * @return New instance
       
    39     */
       
    40     static CDialingExtensionObserver* NewL( 
       
    41             CDialingExtensionInterface* aDialingExtension, 
       
    42             CDialerNumberEntry* aNumberEntry,
       
    43             CDialer* aDialer );
       
    44     
       
    45     /**
       
    46      * Destructor
       
    47      */
       
    48     ~CDialingExtensionObserver();
       
    49     
       
    50     /**
       
    51     * MDialingExtensionObserver function.
       
    52     */
       
    53     void HandleDialingExtensionEvent( MDialingExtensionObserver::TEvent aEvent );
       
    54     
       
    55 private:
       
    56     
       
    57     
       
    58     /**
       
    59     * Cconstructor
       
    60     * @param aDialingExtension  Dialer extension. Does not take ownership.
       
    61     * @param aNumberEditor      Number editor. Does not take ownership.
       
    62     * @param aDialer            Dialer. Does not take ownership.
       
    63     */
       
    64     CDialingExtensionObserver( 
       
    65             CDialingExtensionInterface* aDialingExtension, 
       
    66             CDialerNumberEntry* aNumberEntry,
       
    67             CDialer* aDialer );
       
    68     
       
    69     void UpdateCba();
       
    70     
       
    71     void SearchL();
       
    72     
       
    73 private:
       
    74     
       
    75     // Not owned.
       
    76     CDialingExtensionInterface* iDialingExtension;
       
    77     
       
    78     // Not owned.
       
    79     CDialerNumberEntry* iNumberEntry;
       
    80     
       
    81     // Not owned.
       
    82     CDialer* iDialer;
       
    83     
       
    84     // Not owned.
       
    85     CEikonEnv* iEikonEnvironment;    
       
    86     };
       
    87 
       
    88 #endif // CDIALINGEXTENSIONOBSERVER_H
       
    89