webservices/wsstar/wsstarpolicy/inc/assertion.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2009 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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef C_ASSERTION_H
       
    26 #define C_ASSERTION_H
       
    27 
       
    28 #include <e32base.h>
       
    29 #include <s32strm.h>
       
    30 #include "massertion.h"
       
    31 
       
    32 
       
    33 class CWSPolicyWriter;
       
    34 
       
    35 class CAssertion: public  CBase, public MAssertion 
       
    36 { 
       
    37 
       
    38 public:
       
    39     static CAssertion* NewL();
       
    40     static CAssertion* NewLC();
       
    41     virtual ~CAssertion();
       
    42 public:
       
    43 
       
    44 
       
    45     virtual void 	AddTerm(MAssertion* aAssertion);
       
    46     virtual void 	AddTerms(RPolicyTerms& aAssertions);
       
    47     virtual void 	AddTermCopyL(MAssertion* aAssertion);
       
    48     virtual void 	AddTermsCopyL(RPolicyTerms& aAssertions);
       
    49 
       
    50     virtual void 	        MoveTermL(RPolicyTerms& aAssertions);
       
    51     virtual void 	        MoveTermsL(RPolicyTerms& aAssertions);
       
    52 
       
    53 
       
    54     virtual  MAssertion* 	GetParent();
       
    55     virtual RPolicyTerms& 	GetTerms();
       
    56     virtual  TBool 	HasParent();
       
    57     virtual  MAssertion* 	IntersectL(MAssertion* aAssertion);
       
    58     virtual  TBool 	IsEmpty();
       
    59     virtual  TBool 	IsNormalized();
       
    60     virtual  MAssertion* 	MergeL(MAssertion* aAssertion);
       
    61     virtual  MAssertion* 	NormalizeL();
       
    62     virtual TInt 	Remove(MAssertion* aAssertion);
       
    63     virtual  void 	SetNormalized(TBool aFlag);
       
    64     virtual  void 	SetParent(MAssertion* aParent);
       
    65     virtual  TAssertionType Type();
       
    66 
       
    67 
       
    68     virtual  MAssertion*   IntersectL(MAssertion* aAssertion, CPolicyRegistry* aRegistry);
       
    69     virtual  MAssertion*   MergeL(MAssertion* aAssertion, CPolicyRegistry* aRegistry);
       
    70     virtual  MAssertion*   NormalizeL(CPolicyRegistry* aRegistry);
       
    71 
       
    72     TInt 	Size();    
       
    73     CAssertion();
       
    74 
       
    75     static TInt DeleteAssertion(MAssertion* aAssertion);    
       
    76 
       
    77 private:
       
    78     
       
    79     void ConstructL();
       
    80     
       
    81 private:
       
    82     RPolicyTerms iChildterms;
       
    83     MAssertion* iParent;
       
    84     TBool iNormalized;
       
    85     
       
    86 //    RFileLogger iLog;
       
    87     
       
    88 };
       
    89 
       
    90 #endif //C_ASSERTION_H