sipplugins/sippsipsettingsui/inc/sipsettlistsipsrvsetmodel.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005 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:  The model of the server setting views
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SIP_SETT_LIST_SIP_SRV_SET_MODEL_H
       
    20 #define SIP_SETT_LIST_SIP_SRV_SET_MODEL_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <aknsettingitemlist.h>
       
    26 #include <sipprofiletypeinfo.h>
       
    27 #include "tgssipserverdata.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CGSSIPModel;
       
    32 class CSIPRouteHeader;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CSIPSettListSIPSrvSetModel model class
       
    38 *  @since 3.0
       
    39 *  model class for SIP Server settings view
       
    40 */
       
    41 class CSIPSettListSIPSrvSetModel : public CBase
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         
       
    45         /**
       
    46         * Two-phased constructor.        
       
    47         * @param aData The used server data structure
       
    48         * @param aProfileType for profile type
       
    49         * @param aLocked for profile lock info
       
    50         */
       
    51         static CSIPSettListSIPSrvSetModel* NewL( TGSSIPServerData& aData, 
       
    52             TSIPProfileTypeInfo::TSIPProfileClass aProfileType,
       
    53             TBool aLocked );
       
    54         
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         virtual ~CSIPSettListSIPSrvSetModel();
       
    59 
       
    60     public: // New functions
       
    61 
       
    62         /**
       
    63         * Fetches the settings of the modified server
       
    64         * @return Pointer to the server data
       
    65         */        
       
    66         TGSSIPServerData* Settings();        
       
    67 
       
    68         /**
       
    69         * Returns selected service profile type
       
    70         * @return type of selected service profile
       
    71         */
       
    72         TSIPProfileTypeInfo::TSIPProfileClass ProfileType();
       
    73 
       
    74         /**
       
    75         * Checks is currently shown profile locked
       
    76         * @return ETrue if profile is locked
       
    77         */
       
    78         TBool ProfileLocked();
       
    79 
       
    80     private:
       
    81 
       
    82         /**
       
    83         * C++ default constructor.        
       
    84         * @param aData Data structure for initialization
       
    85         * @param aProfileType for profile type
       
    86         * @param aLocked for profile lock info
       
    87         */
       
    88         CSIPSettListSIPSrvSetModel( TGSSIPServerData& aData,
       
    89             TSIPProfileTypeInfo::TSIPProfileClass,
       
    90             TBool aLocked );
       
    91 
       
    92         /**
       
    93         * By default Symbian 2nd phase constructor is private.
       
    94         */
       
    95         void ConstructL();
       
    96 
       
    97     private:    // Data    
       
    98 
       
    99         // The temporary data structure
       
   100         TGSSIPServerData& iData;    
       
   101         // Type of selected service profile type
       
   102         TSIPProfileTypeInfo::TSIPProfileClass iProfileType;
       
   103         // Profile lock info
       
   104         TBool iLocked;
       
   105     };
       
   106 
       
   107 #endif      // SIP_SETT_LIST_SIP_SRV_SET_MODEL_H   
       
   108             
       
   109 // End of File