webservices/wsstar/wsstarpolicy/inc/wspolicyutils.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-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:        This utility class provides static methods for conversions*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef WS_POLICYC_UTILS_H
       
    25 #define WS_POLICYC_UTILS_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <e32base.h>
       
    29 #include "massertion.h"
       
    30 // CLASS DECLARATION
       
    31 class CPolicyRegistry;
       
    32 class CPolicyAssertion;
       
    33 /**
       
    34 *  @lib WSPolicy.lib
       
    35 *  @since Series60 3.0
       
    36 */
       
    37 class CWSPolicyUtils : public CBase
       
    38     {
       
    39     public: 
       
    40 
       
    41         static CPolicyAssertion* GetPolicy(RPolicyTerms& terms);
       
    42         static CPolicyAssertion* GetSinglePolicyL(RPolicyTerms& policyList, CPolicyRegistry* reg);
       
    43         static void GetPrimTermsListL(CPolicyAssertion* policy, RPolicyTerms& aTerms); 
       
    44         
       
    45         IMPORT_C static TPtrC8 PolicyNameL(CSenElement* aPolicy);
       
    46 
       
    47         /**
       
    48         */
       
    49         IMPORT_C static TPtrC8 PolicyIdL(CSenElement* aPolicy);
       
    50         
       
    51         IMPORT_C static TPtrC8 PolicyUriL(CSenElement* aPolicy);
       
    52                 /**
       
    53         */
       
    54         IMPORT_C static TBool IsExpiredPolicyL(CSenElement* aPolicy);
       
    55 
       
    56 
       
    57     private:
       
    58         /**
       
    59         * Hide default C++ constructor.
       
    60         */
       
    61         CWSPolicyUtils() { }
       
    62 
       
    63         /**
       
    64         * Prohibit copy constructor if not deriving from CBase.
       
    65         */
       
    66         CWSPolicyUtils( const CWSPolicyUtils& );
       
    67 
       
    68         /**
       
    69         * Prohibit assignment operator if not deriving from CBase.
       
    70         */
       
    71         CWSPolicyUtils& operator=( const CWSPolicyUtils& );
       
    72         
       
    73         static CSenElement* GetExpiryTagL(CSenElement* aPolicy);
       
    74     };
       
    75 
       
    76 #endif // WS_POLICYC_UTILS_H
       
    77 // End of File