satengine/SatServer/Commands/SendSSCmd/src/csatsendssbarringnouiobs.cpp
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Send Ss barrings observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include    "csatsendssbarringnouiobs.h"
       
    20 #include    "SatLog.h"
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CSatSendSsBarringNoUiObs::CSatSendSsBarringNoUiObs
       
    26 // C++ default constructor can NOT contain any code, that might leave.
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CSatSendSsBarringNoUiObs::CSatSendSsBarringNoUiObs()
       
    30     {
       
    31     LOG( SIMPLE,
       
    32         "SENDSS: CSatSendSsBarringNoUiObs::CSatSendSsBarringNoUiObs \
       
    33         calling-exiting" )
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CSatSendSsBarringNoUiObs::~CSatSendSsBarringNoUiObs
       
    38 // Destructor.
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CSatSendSsBarringNoUiObs::~CSatSendSsBarringNoUiObs()
       
    42     {
       
    43     LOG( SIMPLE,
       
    44         "SENDSS: CSatSendSsBarringNoUiObs::~CSatSendSsBarringNoUiObs \
       
    45         calling-exiting" )
       
    46     }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CSatSendSsBarringNoUiObs::HandleBarringModeChangedL
       
    50 // Notification of barring mode change
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 void CSatSendSsBarringNoUiObs::HandleBarringModeChangedL(
       
    54     TBarringProgram aType,
       
    55     TBarringStatus aStatus,
       
    56     TBool aPlural )
       
    57     {
       
    58     LOG( SIMPLE,
       
    59         "SENDSS: CSatSendSsBarringNoUiObs::HandleBarringModeChangedL calling" )
       
    60 
       
    61     LOG2( DETAILED, "  Barring program: %i", aType )
       
    62     LOG2( DETAILED, "  Barring status:  %i", aStatus )
       
    63     LOG2( DETAILED, "  Plural:          %i", aPlural)
       
    64 
       
    65     // Avoid warnigs about unused parameters.
       
    66     aType = aType;
       
    67     aStatus = aStatus;
       
    68     aPlural = aPlural;
       
    69 
       
    70     LOG( SIMPLE,
       
    71         "SENDSS: CSatSendSsBarringNoUiObs::HandleBarringModeChangedL exiting" )
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CSatSendSsBarringNoUiObs::HandleBarringModeStatusL
       
    76 // Notification of barring mode status
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 void CSatSendSsBarringNoUiObs::HandleBarringModeStatusL(
       
    80     TUint8 aBsc[KPSetNumberOfBsc],
       
    81     TBarringStatus aStatus )
       
    82     {
       
    83     LOG( SIMPLE,
       
    84         "SENDSS: CSatSendSsBarringNoUiObs::HandleBarringModeStatusL calling" )
       
    85 
       
    86     LOG2( DETAILED, "  Barring status:  %i", aStatus )
       
    87 
       
    88     // To avoid warnigs about unused parameters
       
    89     aBsc = aBsc;
       
    90     aStatus = aStatus;
       
    91 
       
    92     LOG( SIMPLE,
       
    93         "SENDSS: CSatSendSsBarringNoUiObs::HandleBarringModeStatusL exiting" )
       
    94     }
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CSatSendSsBarringNoUiObs::HandleBarringErrorL
       
    98 // Notification of errors in call barring requests
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 void CSatSendSsBarringNoUiObs::HandleBarringErrorL(
       
   102     TInt aReason )
       
   103     {
       
   104     LOG( SIMPLE,
       
   105         "SENDSS: CSatSendSsBarringNoUiObs::HandleBarringErrorL calling" )
       
   106 
       
   107     LOG2( DETAILED, "  Barring error: %i", aReason )
       
   108 
       
   109     // To avoid warnigs about unused parameters
       
   110     aReason = aReason;
       
   111 
       
   112     LOG( SIMPLE,
       
   113         "SENDSS: CSatSendSsBarringNoUiObs::HandleBarringErrorL exiting" )
       
   114     }
       
   115 
       
   116 // -----------------------------------------------------------------------------
       
   117 // CSatSendSsBarringNoUiObs::HandleCBRequestingL
       
   118 // Notification of requesting
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 void CSatSendSsBarringNoUiObs::HandleCBRequestingL(
       
   122     TBool aOngoing, TBool aInterrupted )
       
   123     {
       
   124     LOG( SIMPLE,
       
   125         "SENDSS: CSatSendSsBarringNoUiObs::HandleCBRequestingL calling" )
       
   126 
       
   127     LOG2( DETAILED, "  ongoing: %i", aOngoing )
       
   128     LOG2( DETAILED, "  interrupted: %i", aInterrupted )
       
   129 
       
   130     // To avoid warnigs about unused parameters
       
   131     aOngoing = aOngoing;
       
   132     aInterrupted = aInterrupted;
       
   133 
       
   134     LOG( SIMPLE,
       
   135         "SENDSS: CSatSendSsBarringNoUiObs::HandleCBRequestingL exiting" )
       
   136     }
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 // CSatSendSsBarringNoUiObs::CbPasswordChangedL
       
   140 // Notification relating to cb password change requests.
       
   141 // -----------------------------------------------------------------------------
       
   142 //
       
   143 void CSatSendSsBarringNoUiObs::CbPasswordChangedL(
       
   144     TBool aSuccess )
       
   145     {
       
   146     LOG( SIMPLE,
       
   147         "SENDSS: CSatSendSsBarringNoUiObs::CbPasswordChangedL calling" )
       
   148 
       
   149     LOG2( DETAILED, "  success: %i", aSuccess )
       
   150 
       
   151     // To avoid warnigs about unused parameters
       
   152     aSuccess = aSuccess;
       
   153 
       
   154     LOG( SIMPLE,
       
   155         "SENDSS: CSatSendSsBarringNoUiObs::CbPasswordChangedL exiting" )
       
   156     }
       
   157 
       
   158 // -----------------------------------------------------------------------------
       
   159 // CSatSendSsBarringNoUiObs::SetEngineContact
       
   160 // Notification relating to cb password change requests.
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163  void CSatSendSsBarringNoUiObs::SetEngineContact(
       
   164     MPsetCallBarring* /*aBarringEngine*/ )
       
   165     {
       
   166     LOG( SIMPLE,
       
   167         "SENDSS: CSatSendSsBarringNoUiObs::SetEngineContact calling-exiting" )
       
   168     }
       
   169 
       
   170 //  End of File