mediasettings/feedsettingsviews/src/feedsettingsviewremoveservicequerydialog.cpp
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2006-2008 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 the License "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:    Remove service query dialog.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32base.h>
       
    22 #include "IptvDebug.h"
       
    23 #include "feedsettingsviewremoveservicequerydialog.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 // ---------------------------------------------------------
       
    27 // CVcSettingsViewRemoveServiceQueryDialog::CVcSettingsViewRemoveServiceQueryDialog
       
    28 // C++ default constructor
       
    29 // ---------------------------------------------------------
       
    30 //
       
    31 CVcxNsSettingsViewRemoveServiceQueryDialog::CVcxNsSettingsViewRemoveServiceQueryDialog( )  
       
    32     {
       
    33     IPTVLOGSTRING_LOW_LEVEL(
       
    34     "CVcSettingsViewRemoveServiceQueryDialog::CVcSettingsViewRemoveServiceQueryDialog");
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------
       
    38 // CVcSettingsViewRemoveServiceQueryDialog::ConstructL
       
    39 // Symbian 2nd phase constructor can leave.
       
    40 // ---------------------------------------------------------
       
    41 //
       
    42 void CVcxNsSettingsViewRemoveServiceQueryDialog::ConstructL( const TDesC& aMessageText )
       
    43     {    
       
    44     IPTVLOGSTRING_LOW_LEVEL("CVcSettingsViewRemoveServiceQueryDialog::ConstructL");
       
    45     SetMessageTextL( aMessageText );        
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------
       
    49 // CVcSettingsViewRemoveServiceQueryDialog::NewL
       
    50 // Two-phased constructor.
       
    51 // ---------------------------------------------------------
       
    52 //
       
    53 CVcxNsSettingsViewRemoveServiceQueryDialog* CVcxNsSettingsViewRemoveServiceQueryDialog::NewL( 
       
    54                                                             const TDesC& aMessageText )
       
    55     {
       
    56     IPTVLOGSTRING_LOW_LEVEL("CVcSettingsViewRemoveServiceQueryDialog::NewL");        
       
    57 
       
    58     CVcxNsSettingsViewRemoveServiceQueryDialog* self = 
       
    59     new(ELeave) CVcxNsSettingsViewRemoveServiceQueryDialog(  );
       
    60     CleanupStack::PushL(self);
       
    61     self->ConstructL(aMessageText);
       
    62     CleanupStack::Pop(self);
       
    63     return self;
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------
       
    67 // CVcSettingsViewRemoveServiceQueryDialog::~CVcSettingsViewRemoveServiceQueryDialog
       
    68 // Destructor
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 CVcxNsSettingsViewRemoveServiceQueryDialog::~CVcxNsSettingsViewRemoveServiceQueryDialog()
       
    72     {
       
    73     IPTVLOGSTRING_LOW_LEVEL(
       
    74     "CVcSettingsViewRemoveServiceQueryDialog::~CVcSettingsViewRemoveServiceQueryDialog");                
       
    75     }
       
    76     
       
    77 // ---------------------------------------------------------
       
    78 // CVcSettingsViewRemoveServiceQueryDialog::~CVcSettingsViewRemoveServiceQueryDialog
       
    79 // Destructor
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 TKeyResponse CVcxNsSettingsViewRemoveServiceQueryDialog::OfferKeyEventL(
       
    83                                                         const TKeyEvent& aKeyEvent, 
       
    84                                                         TEventCode aCode )
       
    85     {
       
    86     IPTVLOGSTRING2_LOW_LEVEL(
       
    87         "CVcSettingsViewRemoveServiceQueryDialog::OfferKeyEventL aKeyEvent.iCode: %d",
       
    88         aKeyEvent.iCode);
       
    89     IPTVLOGSTRING2_LOW_LEVEL(
       
    90         "CVcSettingsViewRemoveServiceQueryDialog::OfferKeyEventL aKeyEvent.iScanCode: %d",
       
    91         aKeyEvent.iScanCode);
       
    92     IPTVLOGSTRING2_LOW_LEVEL(
       
    93         "CVcSettingsViewRemoveServiceQueryDialog::OfferKeyEventL aCode: %d", aCode);
       
    94     
       
    95     return CAknMessageQueryDialog::OfferKeyEventL( aKeyEvent, aCode );       
       
    96     }
       
    97 
       
    98 // ---------------------------------------------------------
       
    99 // CVcSettingsViewRemoveServiceQueryDialog::OkToExitL
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 TBool CVcxNsSettingsViewRemoveServiceQueryDialog::OkToExitL( TInt /*aButtonId*/ )
       
   103     {
       
   104     IPTVLOGSTRING_LOW_LEVEL(
       
   105        "CVcSettingsViewRemoveServiceQueryDialog::OkToExitL() returning ETrue.");
       
   106     return ETrue;
       
   107     }    
       
   108 
       
   109 // ---------------------------------------------------------
       
   110 // CVcSettingsViewRemoveServiceQueryDialog::OkToExitL
       
   111 // -----------------------------------------------------------------------------
       
   112 // 
       
   113 TBool CVcxNsSettingsViewRemoveServiceQueryDialog::NeedToDismissQueryL( const TKeyEvent& aKeyEvent )
       
   114     {
       
   115     IPTVLOGSTRING2_LOW_LEVEL(
       
   116         "CVcSettingsViewRemoveServiceQueryDialog::NeedToDismissQueryL aKeyEvent.iCode: %d",
       
   117         aKeyEvent.iCode );
       
   118     IPTVLOGSTRING2_LOW_LEVEL(
       
   119         "CVcSettingsViewRemoveServiceQueryDialog::NeedToDismissQueryL aKeyEvent.iScanCode: %d",
       
   120         aKeyEvent.iScanCode );    
       
   121     return CAknMessageQueryDialog::NeedToDismissQueryL( aKeyEvent );
       
   122     }
       
   123 
       
   124 
       
   125 // ---------------------------------------------------------
       
   126 // CVcxNsSettingsViewRemoveServiceQueryDialog::ProcessCommandL
       
   127 // -----------------------------------------------------------------------------
       
   128 // 
       
   129 void CVcxNsSettingsViewRemoveServiceQueryDialog::ProcessCommandL( TInt aCommandId )    
       
   130     {
       
   131     IPTVLOGSTRING2_LOW_LEVEL(
       
   132         "CVcSettingsViewRemoveServiceQueryDialog::ProcessCommandL aCommandId %d", 
       
   133         aCommandId );
       
   134     
       
   135     CAknMessageQueryDialog::ProcessCommandL( aCommandId );
       
   136     }