connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/connectionerrordiscreetpopup.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 0 5a93021fdf25
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
       
     1 /*
       
     2  * Copyright (c) 2009 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:  Declaration of CConnectingViaDiscreetPopup
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CCONNECTIONERRORDISCREETPOPUP_H
       
    19 #define CCONNECTIONERRORDISCREETPOPUP_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>	// For CActive, link against: euser.lib
       
    23 #include <cmmanager.h>
       
    24 
       
    25 #include "connectionerrordiscreetpopupnotif.h"
       
    26  
       
    27 /**
       
    28  * CConnectingViaDiscreetPopup class
       
    29  */
       
    30 NONSHARABLE_CLASS( CConnectionErrorDiscreetPopup ) : public CActive
       
    31     {
       
    32 public:
       
    33     /**
       
    34      * Destructor
       
    35      * Cancel and destroy
       
    36      */
       
    37     ~CConnectionErrorDiscreetPopup();
       
    38 
       
    39     /**
       
    40      * NewL function 
       
    41      * Two-phased constructor.
       
    42      * @param  aNotif a pointer to notifier plugin
       
    43      */
       
    44     static CConnectionErrorDiscreetPopup* NewL(
       
    45             CConnectionErrorDiscreetPopupNotif* aNotif );
       
    46 
       
    47     /**
       
    48      * NewL function 
       
    49      * Two-phased constructor.
       
    50      * @param  aNotif a pointer to notifier plugin
       
    51      */
       
    52     static CConnectionErrorDiscreetPopup* NewLC(
       
    53             CConnectionErrorDiscreetPopupNotif* aNotif );
       
    54 
       
    55 public:
       
    56     /**
       
    57      * StartL Function for making the initial request
       
    58      */
       
    59     void StartL( TUint32 aErrCode );
       
    60 
       
    61 private:
       
    62     /**
       
    63      * C++ constructor
       
    64      */
       
    65     CConnectionErrorDiscreetPopup( CConnectionErrorDiscreetPopupNotif* aNotif );
       
    66 
       
    67     /**
       
    68      * Second-phase constructor
       
    69      */
       
    70     void ConstructL();
       
    71 
       
    72 private:
       
    73     /**
       
    74      * From CActive
       
    75      */
       
    76     void RunL();
       
    77 
       
    78     /**
       
    79      * From CActive 
       
    80      */
       
    81     void DoCancel();
       
    82 
       
    83     /**
       
    84      * From CActive 
       
    85      */
       
    86     TInt RunError( TInt aError );
       
    87     
       
    88     /**
       
    89      * Resolves error code saved in iErrorCode.
       
    90      * @return EFalse when resolve failed.
       
    91      */
       
    92     TBool ResolveErrorCode( TInt& aText1, TInt& aText2,
       
    93             TInt& aBitmap, TInt& aMask );
       
    94 
       
    95 private:
       
    96 
       
    97     // Used for complete runl, not owned 
       
    98     TRequestStatus* iClientStatus;
       
    99 
       
   100     // Pointer to notifer, not owned
       
   101     CConnectionErrorDiscreetPopupNotif* iNotif;
       
   102     
       
   103     // Error code to be shown
       
   104     TInt iErrorCode;
       
   105     
       
   106     // Handle to cmmanager interface
       
   107     RCmManager icmManager;
       
   108 
       
   109     };
       
   110 
       
   111 #endif // CCONNECTIONERRORDISCREETPOPUP_H