callcontinuity/vcchotrigger/inc/vcchopolicy.h
changeset 0 a4daefaec16c
equal deleted inserted replaced
-1:000000000000 0:a4daefaec16c
       
     1 /*
       
     2 * Copyright (c) 2007-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 "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:   Vcc handover policy definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef T_VCCHOPOLICY_H
       
    21 #define T_VCCHOPOLICY_H
       
    22 
       
    23 #include <e32def.h> 
       
    24 
       
    25 /*
       
    26 * VCC Handover policy attr
       
    27 * Preferred Domain Attributes 
       
    28 */
       
    29 enum TVccHoPolicyPreferredDomain
       
    30     {
       
    31     ECsPreferred = 0,
       
    32     EPsPreferred,
       
    33     ECsOnly,
       
    34     EPsOnly
       
    35     };    
       
    36 
       
    37 enum TVccHoPolicyHoDirection
       
    38     {
       
    39     ECsToPsAllowed = 0x000001,
       
    40     EPsToCsAllowed = 0x000002
       
    41     };
       
    42     
       
    43 /**
       
    44  *  Class indicating the Vcc handover policy
       
    45  *
       
    46  *  @lib vcchotrigger.dll
       
    47  *  @since S60 v3.2
       
    48  */
       
    49 class TVccHoPolicy
       
    50     {
       
    51     
       
    52 public:    
       
    53     /**
       
    54      * Constructor.
       
    55      *
       
    56      * @since S60 3.2
       
    57      */  
       
    58     TVccHoPolicy();
       
    59     
       
    60      /**
       
    61      * Preferred domain for mobile device.
       
    62      *
       
    63      * @since S60 3.2
       
    64      * @return TVccHoPolicyPreferredMode 
       
    65      */
       
    66     TVccHoPolicyPreferredDomain PreferredDomain() const;
       
    67     
       
    68     /**
       
    69      * Set preferred domain for mobile device.
       
    70      *
       
    71      * @since S60 3.2
       
    72      * @param aPreferredDomain Prefered domain value
       
    73      */
       
    74     void SetPreferredDomain( 
       
    75             const TVccHoPolicyPreferredDomain& aPreferredDomain ); 
       
    76      
       
    77      /**
       
    78      * Allowed direction for handover.
       
    79      *
       
    80      * @since S60 3.2
       
    81      * @return TVccHoPolicyHoDirection 
       
    82      */
       
    83     TInt AllowedDirection() const;
       
    84 
       
    85      /**
       
    86      * Set allowed direction for handover on/off.
       
    87      * @since S60 3.2 
       
    88      * @param aAllowedDirection Allowed direction value
       
    89      */
       
    90     void SetAllowedDirection( const TInt aAllowedDirection );
       
    91      
       
    92      /**
       
    93      * Indicates that immediate domain transfer should be
       
    94      * performed when preferred network comes available.
       
    95      *
       
    96      * @since S60 3.2
       
    97      * @return TBool ETrue when Dt should be performed immediately
       
    98      */
       
    99     TBool DoImmediateHo() const;
       
   100      
       
   101     /**
       
   102      * Set immediate domain transfer flag on/off
       
   103      * @since S60 3.2
       
   104      * @param aImmediate Immediate HO value
       
   105      */
       
   106     void SetDoImmediateHo( const TBool& aImmediate );
       
   107     
       
   108      /**
       
   109      * Indicates can the domain transfer be performed
       
   110      * when active/held/waiting calls in trasnferring-out domain.
       
   111      *
       
   112      * @since S60 3.2
       
   113      * @return TBool ETrue when Dt should be performed
       
   114      */
       
   115     TBool DoHoInHeldWaitingCalls() const;
       
   116      
       
   117      /**
       
   118      * Set can domain transfer be performed
       
   119      * when active/held/waiting calls in trasnferring-out domain
       
   120      * on/off.
       
   121      *
       
   122      * @since S60 3.2
       
   123      * @param aHeldWaitingCalls Held waiting calls value
       
   124      */
       
   125     void SetDoHoInHeldWaitingCalls( const TBool& aHeldWaitingCalls );
       
   126     
       
   127     /**
       
   128      * Indicates can HO be performed when cs originated call
       
   129      * 
       
   130      * @since S60 3.2
       
   131      * @return TBool ETrue when HO can be performed
       
   132      */
       
   133     TBool DtAllowedWhenCsOriginated() const;
       
   134     
       
   135     /**
       
   136      * Set is HO allowed when the call is CS originated
       
   137      * 
       
   138      * @since S60 3.2
       
   139      * @param aDtAllowedCsOrig Is Dt allowed value
       
   140      */
       
   141     void SetDtAllowedWhenCsOriginated( 
       
   142                     const TBool& aDtAllowedWhenCsOriginated );
       
   143     
       
   144 private:
       
   145     /** Preferred domain */
       
   146     TVccHoPolicyPreferredDomain iPreferredDomain;
       
   147     
       
   148     /** Allowed direction */
       
   149     TInt                        iAllowedDirection;
       
   150     
       
   151     /** Immediate HO value */
       
   152     TBool                       iImmediate;
       
   153     
       
   154     /** Held waiting calls value*/
       
   155     TBool                       iHeldWaitingCalls;
       
   156     
       
   157     /** Dt allowed in cs originated call */
       
   158     TBool                       iDtAllowedWhenCsOriginated;
       
   159     };
       
   160 
       
   161 #endif //T_VCCHOPOLICY_H