msg_plat/smil_engine_api/inc/smilcondition.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2003 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: smilcondition  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SMILCONDITION_H
       
    21 #define SMILCONDITION_H
       
    22 
       
    23 #include "smiltextbuf.h"
       
    24 
       
    25 #include "smiltime.h"
       
    26 #include "smilevent.h"
       
    27 
       
    28 class TSmilCondition : public CBase
       
    29     {
       
    30     public:  // Constructors and destructor
       
    31         
       
    32 		/**
       
    33         * C++ default constructor.
       
    34         */
       
    35         TSmilCondition();
       
    36 
       
    37 	public:
       
    38 		/**
       
    39         * Destructor.
       
    40         */
       
    41         virtual ~TSmilCondition();
       
    42 
       
    43     public: // New functions
       
    44         
       
    45 		void SetEventClassL( const TDesC& aEvent );
       
    46 		void SetEventSourceL( const TDesC& aSource );
       
    47 
       
    48 		TPtrC EventClassName() const; 
       
    49 		TPtrC EventSourceName() const; 
       
    50 
       
    51 		TBool IsEventCondition() const;
       
    52 
       
    53 		TBool Matches( const TSmilEvent& aEvent ) const;	
       
    54 
       
    55 
       
    56 	private:  	
       
    57 
       
    58 		TSmilCondition(const TSmilCondition& ) : CBase() {}
       
    59 
       
    60 		RSmilTextBuf		iEventClassName;
       
    61 		RSmilTextBuf		iEventSourceName;
       
    62 	public:
       
    63 		TSmilEvent::TEventClass		iEventClass;
       
    64 		TSmilTime			iOffset;
       
    65 		CSmilObject*		iEventSourceObject;
       
    66 	};
       
    67 
       
    68 #endif      // SMILCONDITION_H   
       
    69             
       
    70 // End of File