mds_plat/metadata_engine_api/inc/mdeeventquery.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     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:  Represents event query
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MDEEVENTQUERY_H__
       
    20 #define __MDEEVENTQUERY_H__
       
    21 
       
    22 
       
    23 #include <mdequery.h>
       
    24 
       
    25 
       
    26 /* Forward declarations. */
       
    27 class CMdEEvent;
       
    28 class CMdENamespaceDef;
       
    29 
       
    30 /**
       
    31  * A query that retrieves a set of events from the metadata engine database.
       
    32  * Most functionality is provided by the CMdEQuery base class.
       
    33  */
       
    34 NONSHARABLE_CLASS(CMdEEventQuery) : public CMdEQuery
       
    35 	{
       
    36 public:
       
    37 	
       
    38 	/**
       
    39 	 * Destructor.
       
    40 	 */
       
    41 	virtual ~CMdEEventQuery();
       
    42 
       
    43 
       
    44 	/* Methods. */
       
    45 
       
    46     /**
       
    47 	 * Returns one of the result events.
       
    48      * 
       
    49      * @param aIndex  Index number of the result item.
       
    50 	 *
       
    51 	 * @return  The result event that was requested. The query retains 
       
    52      *          ownership of the returned event item.
       
    53 	 */
       
    54 	IMPORT_C CMdEEvent& Result(TInt aIndex) const;
       
    55 
       
    56 
       
    57 protected:
       
    58 
       
    59 	/* Constructors. */
       
    60 
       
    61 	/**
       
    62 	 * Constructor. 
       
    63 	 *
       
    64 	 * @param aSession  Session.
       
    65 	 */
       
    66 	CMdEEventQuery(CMdESession& aSession, CMdENamespaceDef& aNamespaceDef);
       
    67 
       
    68 	/**
       
    69 	 * Second-phase constructor.
       
    70 	 */
       
    71 	void EventQueryConstructL();
       
    72 	
       
    73     virtual void DoCancel();
       
    74     };
       
    75 
       
    76 #endif  // __MDEEVENTQUERY_H__