emailservices/emailstore/message_store/server/inc/ContainerStoreSearchResultTable.h
changeset 0 8466d47a6819
child 8 e1b6206813b4
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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:  Container store search result table.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CONTAINER_STORE_SEARCH_RESULT_TABLE_H__
       
    21 #define __CONTAINER_STORE_SEARCH_RESULT_TABLE_H__
       
    22 
       
    23 // ========
       
    24 // INCLUDES
       
    25 // ========
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <d32dbms.h>  // database
       
    29 //<cmail>
       
    30 #include "DebugLogMacros.h"
       
    31 //</cmail>
       
    32 
       
    33 #include "ContainerStoreTable.h"
       
    34 #include "ContainerStore.h"
       
    35 #include "MsgStoreTypes.h"
       
    36 
       
    37 // =======
       
    38 // CLASSES
       
    39 // =======
       
    40 
       
    41 class CContainerStoreUtils;
       
    42 
       
    43 // ==================================
       
    44 // CLASS: CContainerStoreSearchResultTable
       
    45 // ==================================
       
    46 class CContainerStoreSearchResultTable : public CContainerStoreTable
       
    47 	{
       
    48 	public:
       
    49 	
       
    50 	    // ==============
       
    51 	    // PUBLIC METHODS
       
    52 	    // ==============
       
    53 	
       
    54         static CContainerStoreSearchResultTable* CreateL( CContainerStoreUtils& aUtils );
       
    55         
       
    56         static CContainerStoreSearchResultTable* OpenL( CContainerStoreUtils& aUtils );
       
    57         
       
    58         virtual ~CContainerStoreSearchResultTable();
       
    59         
       
    60         void AddMessageL( TContainerId aMessageId, TBool aIsMatch );
       
    61         
       
    62         void DeleteMessageL( TContainerId aMessageId );
       
    63         
       
    64         void DeleteAllL();
       
    65         
       
    66         void UpdateMessageL( TContainerId aMessageId, TBool aIsMatch );
       
    67 		
       
    68         TBool GetMessageL( TContainerId aMessageId, TBool& aIsMatch );
       
    69 		
       
    70 	private:
       
    71 
       
    72         // ===============
       
    73         // PRIVATE METHODS
       
    74         // ===============
       
    75         	
       
    76         CContainerStoreSearchResultTable( CContainerStoreUtils& aUtils );
       
    77 		
       
    78 		void OpenTableL();
       
    79 		
       
    80 		void CreateTableL();
       
    81 		
       
    82         void SeekL( TContainerId aMessageId );
       
    83 		
       
    84     private:
       
    85     
       
    86         // ==================
       
    87         // PRIVATE ATTRIBUTES
       
    88         // ==================
       
    89 	    TInt                  iMessageIdColNum;
       
    90         TInt                  iMatchFlagColNum;
       
    91 	    
       
    92 	    __LOG_DECLARATION
       
    93     		
       
    94 	}; // end class CContainerStoreSearchResultTable
       
    95 
       
    96 #endif //__CONTAINER_STORE_SEARCH_RESULT_TABLE_H__