organizer_plat/searchfw_launcher_api/inc/searchcommon.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  search common define
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_SEARCHCOMMON_H
       
    20 #define T_SEARCHCOMMON_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <searchcommon.hrh>
       
    24 
       
    25 /**
       
    26  *  Defines a threshold structure to be used in search requests.
       
    27  */
       
    28 
       
    29 enum TSearchFieldId
       
    30     {
       
    31     ESearchFieldUnknown = 0x0
       
    32     };
       
    33 
       
    34 enum TSearchFieldDataType
       
    35     {
       
    36     ESearchFieldDataTypeUnknown = 0x0,
       
    37     ESearchFieldDataTypeTInt = 0x1,
       
    38     ESearchFieldDataTypeTReal = 0x2,
       
    39     ESearchFieldDataTypeTTime = 0x3,
       
    40     ESearchFieldDataTypeTDesC = 0x4,
       
    41     ESearchFieldDataTypeCustom = 0x300
       
    42     };
       
    43  
       
    44 class TSearchThreshold
       
    45     {
       
    46 public:
       
    47     // The maximum number of results that the search process should deliver.
       
    48     TUint iMaxResults; 
       
    49     // The granularity how many results framework must get before it updates the client.
       
    50     TUint iUpdateGranularity;    
       
    51     // Interval how often should the framework update the client if the granularity is
       
    52     // not fullfilled. 
       
    53     TTimeIntervalMicroSeconds32 iUpdateInterval; 
       
    54     };
       
    55 
       
    56 const TUid KSearchPluginInterfaceUid = { KSearchPluginInterface };
       
    57 
       
    58 const TUid KSearchCClassMessagesUid = { KSearchCClassMessages };
       
    59 const TUid KSearchCClassCalendarUid = { KSearchCClassCalendar };
       
    60 const TUid KSearchCClassNotesUid = { KSearchCClassNotes };
       
    61 const TUid KSearchCClassOfficeDocsUid = { KSearchCClassOfficeDocs };
       
    62 const TUid KSearchCClassContactsUid = { KSearchCClassContacts };
       
    63 const TUid KSearchCClassHelpUid = { KSearchCClassHelp };
       
    64 const TUid KSearchCClassFilenamesUid = { KSearchCClassFilenames };
       
    65 const TUid KSearchCClassVideosUid = { KSearchCClassVideos };
       
    66 const TUid KSearchCClassImagesUid = { KSearchCClassImages };
       
    67 const TUid KSearchCClassMusicUid = { KSearchCClassMusic };  
       
    68 
       
    69 // Definitions of content-folders
       
    70 
       
    71 const TUid KSearchCFolderMeetingsUid = { KSearchCFolderMeetings };    
       
    72 const TUid KSearchCFolderToDoUid = { KSearchCFolderToDo };    
       
    73 const TUid KSearchCFolderAnniversaryUid = { KSearchCFolderAnniversary };    
       
    74 const TUid KSearchCFolderMemoUid = { KSearchCFolderMemo };          
       
    75 const TUid KSearchCFolderInboxUid = { KSearchCFolderInbox };         
       
    76 const TUid KSearchCFolderSentUid = { KSearchCFolderSent }; 
       
    77 const TUid KSearchCFolderOutboxUid = { KSearchCFolderOutbox };
       
    78 const TUid KSearchCFolderThemesUid = { KSearchCFolderThemes };
       
    79 const TUid KSearchCFolderSoundsUid = { KSearchCFolderSounds }; 
       
    80 const TUid KSearchCFolderLinksUid = { KSearchCFolderLinks }; 
       
    81 const TUid KSearchCFolderPresentationsUid = { KSearchCFolderPresentations }; 
       
    82 const TUid KSearchCFolderFilesUid = { KSearchCFolderFiles };
       
    83 const TUid KSearchCFolderDraftsUid = { KSearchCFolderDrafts };
       
    84 
       
    85 const TUid KSearchCFolderSIMUid = { KSearchCFolderSIM };
       
    86 const TUid KSearchCFolderPhoneUid = { KSearchCFolderPhone };
       
    87 const TUid KSearchCSubContentMMCUid = { KSearchCSubContentMMC };
       
    88 
       
    89 #endif // T_SEARCHCOMMON_H