mmshplugins/mmshsettingsuiplugin/inc/mmussipprofilehandler.h
branchRCL_3
changeset 22 73a1feb507fb
parent 2 b31261fd4e04
child 23 bc78a40cd63c
equal deleted inserted replaced
21:33a5d2bbf6fc 22:73a1feb507fb
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Mixin-class that provides functionality for manipulating
    14 * Description:  Mixin-class that provides functionality for manipulating
    15 *                MuS specific settings.
    15 *                MuS specific settings.
    16 *  Version     : %version: 6 % << Don't touch! Updated by Synergy at check-out.
       
    17 *
    16 *
    18 */
    17 */
    19 
    18 
    20 
    19 
    21 #ifndef M_MMUSSIPPROFILEHANDLER_H
    20 #ifndef M_MMUSSIPPROFILEHANDLER_H
    22 #define M_MMUSSIPPROFILEHANDLER_H
    21 #define M_MMUSSIPPROFILEHANDLER_H
    23 
    22 
    24 #include <e32def.h>
    23 #include <sipmanagedprofile.h>
    25 #include <e32cmn.h>
       
    26 
       
    27 class CSIPProfile;
       
    28 
    24 
    29 /**
    25 /**
    30 *  MMusSIPProfileHandler class
    26 *  MMusSIPProfileHandler class
    31 *  Mixin class for SIP profile manipulation.
    27 *  Mixin class for SIP profile manipulation.
    32 *  Handles SIP profile manipulations.
    28 *  Handles SIP profile manipulations.
       
    29 *  @since S60 v3.2
    33 */
    30 */
    34 class MMusSIPProfileHandler
    31 class MMusSIPProfileHandler
    35     {
    32     {
    36 public:
    33 public:
    37 
    34 
    39      * Returns the index of the default SIP profile.
    36      * Returns the index of the default SIP profile.
    40      * @return KErrNotFound, if one does not exist, otherwise index of the
    37      * @return KErrNotFound, if one does not exist, otherwise index of the
    41      *         default SIP profile.
    38      *         default SIP profile.
    42      */
    39      */
    43     virtual TInt DefaultProfileIndex() = 0;
    40     virtual TInt DefaultProfileIndex() = 0;
    44     
    41 
    45     /**
    42     /**
    46      * Returns a reference to the SIP profile array.
    43      * Returns pointer to the SIP profile array, does not change ownership.
    47      * Note that previously returned value goes out of scope after a new
    44      * Note that previously returned value goes out of scope after a new
    48      * call to ProfileArrayL. So it is not advised to store return value
    45      * call to ProfileArrayL. So it is not advised to store return value
    49      * in long persistent variable, but rather to be used like stack
    46      * in long persistent variable, but rather to be used like stack
    50      * variables for safety.
    47      * variables for safety.
    51      *
    48      *
    52      * @return Reference to internally cached SIP profile array.
    49      * @return Pointer to internally cached SIP profile array.
    53      */
    50      */
    54     virtual RPointerArray<CSIPProfile>& ProfileArrayL() = 0;
    51     virtual CArrayPtr<CSIPManagedProfile>* ProfileArrayL() = 0;
    55 
    52 
    56     /**
    53     /**
    57      * Returns the id of the default SIP profile.
    54      * Returns the id of the default SIP profile.
    58      * @return KErrNotFound, if one does not exist, otherwise id of the
    55      * @return KErrNotFound, if one does not exist, otherwise id of the
    59      *         default SIP profile.
    56      *         default SIP profile.
    60      */
    57      */
    61     virtual TUint32 DefaultProfileId() = 0;
    58     virtual TUint32 DefaultProfileId() = 0;
    62     
       
    63     /*
       
    64      * 
       
    65      * 
       
    66      */
       
    67     virtual void DisableProfileL() = 0;
       
    68 
    59 
    69     /**
    60     /**
    70      * Returns profile id based on index.
    61      * Returns profile id based on index.
    71      * @param aIndex Profile index
    62      * @param aIndex Profile index
    72      * @return Profile id or KUnknownProfileId if no matching profile is found.
    63      * @return Profile id or KUnknownProfileId if no matching profile is found.