epoc32/include/mw/epos_cposlmidlistcriteria.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  CPosLmIdListCriteria class
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef CPOSLMIDLISTCRITERIA_H
williamr@2
    20
#define CPOSLMIDLISTCRITERIA_H
williamr@2
    21
williamr@2
    22
#include <e32base.h>
williamr@2
    23
#include <EPos_Landmarks.h>
williamr@2
    24
#include "EPos_CPosLmSearchCriteria.h"
williamr@2
    25
williamr@2
    26
/**
williamr@2
    27
*  Landmark ID list search criterion.
williamr@2
    28
*
williamr@2
    29
*  This criterion is used if the client only wants to search a subset of the
williamr@2
    30
*  landmarks in the database.
williamr@2
    31
*
williamr@2
    32
*  This criterion must be combined with other search criteria using a
williamr@2
    33
*  @ref CPosLmCompositeCriteria. It is of no use on its own. If it is not
williamr@2
    34
*  combined with another criterion,
williamr@2
    35
*  @ref CPosLandmarkSearch::StartLandmarkSearchL will fail with error code
williamr@2
    36
*  @p KErrArgument.
williamr@2
    37
*
williamr@2
    38
*  @p Example: If this criterion is combined with a @ref CPosLmTextCriteria,
williamr@2
    39
*  the search operation searches the landmarks specified in the ID list
williamr@2
    40
*  criterion and returns those which match the given text string.
williamr@2
    41
*
williamr@2
    42
*  Only one ID list criterion is allowed in each composite criterion, otherwise
williamr@2
    43
*  @ref CPosLandmarkSearch::StartLandmarkSearchL will fail with error code
williamr@2
    44
*  @p KErrArgument.
williamr@2
    45
*
williamr@2
    46
*  If the criterion does not contain any landmark IDs,
williamr@2
    47
*  @ref CPosLandmarkSearch::StartLandmarkSearchL will fail with error code
williamr@2
    48
*  @p KErrArgument.
williamr@2
    49
*
williamr@2
    50
*  @lib eposlmsearchlib.lib
williamr@2
    51
*  @since S60 3.0
williamr@2
    52
*/
williamr@2
    53
class CPosLmIdListCriteria : public CPosLmSearchCriteria
williamr@2
    54
    {
williamr@2
    55
    public:
williamr@2
    56
williamr@2
    57
        /**
williamr@2
    58
        * Two-phased constructor.
williamr@2
    59
        *
williamr@2
    60
        * @returns A new instance of this class.
williamr@2
    61
        */
williamr@2
    62
        IMPORT_C static CPosLmIdListCriteria* NewLC();
williamr@2
    63
williamr@2
    64
        /**
williamr@2
    65
        * Destructor
williamr@2
    66
        */
williamr@2
    67
        IMPORT_C virtual ~CPosLmIdListCriteria();
williamr@2
    68
williamr@2
    69
    public:
williamr@2
    70
williamr@2
    71
        /**
williamr@2
    72
        * Sets the IDs of the landmarks which should be included in the search.
williamr@2
    73
        *
williamr@2
    74
        * @param[in] aIdArray The IDs of the landmarks which should be included
williamr@2
    75
        *   in the search.
williamr@2
    76
        */
williamr@2
    77
        IMPORT_C void SetLandmarkIdsL( const RArray<TPosLmItemId>&  aIdArray );
williamr@2
    78
williamr@2
    79
        /**
williamr@2
    80
        * Retrieves the list of IDs of the landmarks which should be included
williamr@2
    81
        * in the search.
williamr@2
    82
        *
williamr@2
    83
        * @param[out] aIdArray On return, contains the IDs of the landmarks which
williamr@2
    84
        *   should be included in the search.
williamr@2
    85
        */
williamr@2
    86
        IMPORT_C void GetLandmarkIdsL( RArray<TPosLmItemId>&  aIdArray ) const;
williamr@2
    87
williamr@2
    88
    private:
williamr@2
    89
williamr@2
    90
        // C++ constructor
williamr@2
    91
        CPosLmIdListCriteria();
williamr@2
    92
williamr@2
    93
        // Prohibit copy constructor
williamr@2
    94
        CPosLmIdListCriteria( const CPosLmIdListCriteria& );
williamr@2
    95
        // Prohibit assigment operator
williamr@2
    96
        CPosLmIdListCriteria& operator= ( const CPosLmIdListCriteria& );
williamr@2
    97
williamr@2
    98
    private:
williamr@2
    99
williamr@2
   100
        RArray<TPosLmItemId> iIdArray;
williamr@2
   101
    };
williamr@2
   102
williamr@2
   103
#endif      // CPOSLMIDLISTCRITERIA_H
williamr@2
   104
williamr@2
   105