satengine/SatServer/Commands/SendSSCmd/inc/csatsendsshandler.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Process forwarding procedures.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSATSENDSSHANDLER_H
       
    20 #define CSATSENDSSHANDLER_H
       
    21 
       
    22 #include <CPhoneGsmSsHandler.h>
       
    23 #include <nwdefs.h>
       
    24 #include <PsetCallWaiting.h>
       
    25 #include <PsetContainer.h>
       
    26 #include <PsetCallBarring.h>
       
    27 #include <PsetCallDiverting.h>
       
    28 #include <PsetCli.h>
       
    29 #include <MPsetRequestObs.h>
       
    30 
       
    31 class CSatSendSsBarringNoUiObs;
       
    32 class CSatSendSsCliNoUiObs;
       
    33 class CSatSendSsCallWaitingNoUiObs;
       
    34 class CSatSendSsDivertNoUiObs;
       
    35 
       
    36 /**
       
    37 *  Handles process forwarding procedures.
       
    38 *
       
    39 *  @lib SendSsCmd
       
    40 *  @since S60 v3.1
       
    41 */
       
    42 class CSatSendSsHandler : public CPhoneGsmSsHandler,
       
    43                           public MPsetRequestObserver
       
    44     {
       
    45 
       
    46 public:
       
    47 
       
    48     /**
       
    49      * Destructor.
       
    50      */
       
    51     ~CSatSendSsHandler();
       
    52 
       
    53     /**
       
    54      * From CPhoneGsmSsHandler, Process forwarding procedures.
       
    55      *
       
    56      * If a parameter is not allowed for a procedure,
       
    57      * then it is empty. If a parameter is not explicitly given,
       
    58      * then it is empty. If a parameter is present, then it can
       
    59      * be asumed to contain appropriate values.
       
    60      *
       
    61      * @param aAction It is action.
       
    62      * @param aForwarding It contains forwarding procedure.
       
    63      * @param aNumber It is directory number.
       
    64      * @param aBasicCode It is basic service code.
       
    65      * @param aTimer It is timer.
       
    66      */
       
    67     void ProcessForwardingL(
       
    68         TAction aAction,
       
    69         TForwardingProcedure aForwarding,
       
    70         const TDesC& aNumber,
       
    71         const TDesC& aBasicCode,
       
    72         const TDesC& aTimer );
       
    73 
       
    74     /**
       
    75      * From CPhoneGsmSsHandler, Process barring procedures.
       
    76      *
       
    77      * See comments for forwarding, they apply also in here.
       
    78      *
       
    79      * @param aAction It is action.
       
    80      * @param aBarring It contains barring procedure.
       
    81      * @param aPassword It should be barring password, if required.
       
    82      * @param aBasicCode It is basic service code.
       
    83      */
       
    84     void ProcessBarringL(
       
    85         TAction aAction,
       
    86         TBarringProcedure aBarring,
       
    87         const TDesC& aPassword,
       
    88         const TDesC& aBasicCode );
       
    89 
       
    90     /**
       
    91      * From CPhoneGsmSsHandler, Process password change
       
    92      *
       
    93      * @param aPassword It is password procedure.
       
    94      * @param aOldPassword It should be old password.
       
    95      * @param aNewPassword1 It is new password.
       
    96      * @param aNewPassword2 It is new password.
       
    97      */
       
    98     void ProcessPasswordChangeL(
       
    99         TPasswordProcedure aPassword,
       
   100         const TDesC& aOldPassword,
       
   101         const TDesC& aNewPassword1,
       
   102         const TDesC& aNewPassword2 );
       
   103 
       
   104     /**
       
   105      * From CPhoneGsmSsHandler, Process waiting.
       
   106      *
       
   107      * @param aAction It is action.
       
   108      * @param aBasicCode It is basic service code.
       
   109      */
       
   110     void ProcessWaitingL(
       
   111         TAction aAction,
       
   112         const TDesC& aBasicCode );
       
   113 
       
   114     /**
       
   115      * From CPhoneGsmSsHandler, Process calling line
       
   116      * identification presentation status.
       
   117      */
       
   118     void ProcessClipStatusL();
       
   119 
       
   120     /**
       
   121      * From CPhoneGsmSsHandler, Process calling line
       
   122      * idnetification restriction status.
       
   123      */
       
   124     void ProcessClirStatusL();
       
   125 
       
   126     /**
       
   127      * From CPhoneGsmSsHandler, Process connected line
       
   128      * presentation status.
       
   129      */
       
   130     void ProcessColpStatusL();
       
   131 
       
   132     /**
       
   133      * From CPhoneGsmSsHandler, Process connected line
       
   134      * restriction status.
       
   135      */
       
   136     void ProcessColrStatusL();
       
   137 
       
   138     /**
       
   139      * From CPhoneGsmSsHandler, Processes result
       
   140      */
       
   141     void ProcessCnapStatusL();
       
   142 
       
   143     /**
       
   144      * From MPsetRequestObs, called when request is completed
       
   145      * so that also ui browsing is ended
       
   146      */
       
   147     void RequestComplete();
       
   148 
       
   149     /**
       
   150      * From MPsetRequestObs, called when request status is changed
       
   151      * so that also ui browsing is ended
       
   152      */
       
   153     void RequestStatusChanged( TInt aNewStatus );
       
   154 
       
   155     /**
       
   156      * cancel function cancels current request
       
   157      */
       
   158     void Cancel();
       
   159 
       
   160 private:
       
   161 
       
   162     /**
       
   163      * Changes parameter to basic service code
       
   164      */
       
   165     TBasicServiceGroups ChangeToBsc( const TDesC& aBasicCode ) const;
       
   166 
       
   167     /**
       
   168      * Connects class to the phonesettings
       
   169      */
       
   170     void ConnectToSsEngineL();
       
   171 
       
   172 private:    // Data
       
   173 
       
   174     /**
       
   175      * Pointer to PhoneSettings
       
   176      */
       
   177     CPsetContainer* iSettings;
       
   178 
       
   179     /**
       
   180      * Call waiting handler in Phone Settings
       
   181      */
       
   182     CPsetCallWaiting* iWaiting;
       
   183 
       
   184     /**
       
   185      * Call waiting observer
       
   186      */
       
   187     CSatSendSsCallWaitingNoUiObs* iSatCwObserver;
       
   188 
       
   189     /**
       
   190      * Call barring handler in Phone Settings
       
   191      */
       
   192     CPsetCallBarring* iBarring;
       
   193 
       
   194     /**
       
   195      * Call barring observer
       
   196      */
       
   197     CSatSendSsBarringNoUiObs* iSatCbObserver;
       
   198 
       
   199     /**
       
   200      * Cli handler in Phone Settings
       
   201      */
       
   202     CPsetCli* iCli;
       
   203 
       
   204     /**
       
   205      * Cli observer
       
   206      */
       
   207     CSatSendSsCliNoUiObs* iSatCliObserver;
       
   208 
       
   209     /**
       
   210      * Call diverting handler in Phone Settings
       
   211      */
       
   212     CPsetCallDiverting* iDivert;
       
   213 
       
   214     /**
       
   215      * Call diverting observer
       
   216      */
       
   217     CSatSendSsDivertNoUiObs* iSatCfObserver;
       
   218 
       
   219     };
       
   220 
       
   221 #endif      // CSATSENDSSHANDLER_H