ximpfw/presence/srcpresencedatamodel/presencepublishing/documentutils.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Document utils
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CDOCUMENTUTILS_H
       
    19 #define CDOCUMENTUTILS_H
       
    20 
       
    21 #include <e32std.h>
       
    22 
       
    23 class CPresenceInfoImp;
       
    24 class CPresenceInfoFilterImp;
       
    25 
       
    26 /**
       
    27  * Document utils
       
    28  *
       
    29  * @lib ximpdatamodel.dll
       
    30  * @since S60 v3.2
       
    31  */
       
    32 class DocumentUtils
       
    33     {
       
    34 
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Create union of two source info filters.
       
    39      * @param aSource1 First source filter
       
    40      * @param aSource2 Second source filter
       
    41      * @return New created filter. Ownership is transferred to caller.
       
    42      */
       
    43     IMPORT_C static CPresenceInfoFilterImp* InfoFilterUnionL(
       
    44                                                 CPresenceInfoFilterImp& aSource1,
       
    45                                                 CPresenceInfoFilterImp& aSource2 );
       
    46     /**
       
    47      * Create union of filters
       
    48      * @param aSources Array of sources for union.
       
    49      * @return New created filter. Ownership is transferred to caller.
       
    50      */
       
    51     IMPORT_C static CPresenceInfoFilterImp* InfoFilterUnionL(
       
    52                     const RPointerArray< CPresenceInfoFilterImp >& aSources );
       
    53 
       
    54     /**
       
    55      *
       
    56      */
       
    57     IMPORT_C static CPresenceInfoImp* CollectFilteredPresenceInfoLC(
       
    58                                                 const CPresenceInfoFilterImp& aPif,
       
    59                                                 const CPresenceInfoImp& aSource );
       
    60 private:
       
    61 
       
    62 
       
    63     };
       
    64 
       
    65 
       
    66 #endif // CDOCUMENTUTILS_H
       
    67 
       
    68