landmarks/locationlandmarks/multidbsearch/src/EPos_CPosLmEmptyIterator.cpp
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005 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: Iterator for landmark item search matches
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    <EPos_LandmarksErrors.h>
       
    22 #include    "EPos_CPosLmEmptyIterator.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CPosLmEmptyIterator::CPosLmEmptyIterator
       
    28 // C++ default constructor can NOT contain any code, that
       
    29 // might leave.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 CPosLmEmptyIterator::CPosLmEmptyIterator()
       
    33 :   CPosLmItemIterator()
       
    34     {
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CPosLmEmptyIterator::NewL
       
    39 // Two-phased constructor.
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 CPosLmEmptyIterator* CPosLmEmptyIterator::NewL()
       
    43     {
       
    44     CPosLmEmptyIterator* self = new(ELeave) CPosLmEmptyIterator();
       
    45     return self;
       
    46     }
       
    47 
       
    48 // Destructor
       
    49 CPosLmEmptyIterator::~CPosLmEmptyIterator()
       
    50     {
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CPosLmEmptyIterator::NextL
       
    55 //
       
    56 // (other items were commented in a header).
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 TPosLmItemId CPosLmEmptyIterator::NextL()
       
    60     {
       
    61     return KPosLmNullItemId;
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CPosLmEmptyIterator::Reset
       
    66 //
       
    67 // (other items were commented in a header).
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 void CPosLmEmptyIterator::Reset()
       
    71     {
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CPosLmEmptyIterator::NumOfItemsL
       
    76 //
       
    77 // (other items were commented in a header).
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 TUint CPosLmEmptyIterator::NumOfItemsL()
       
    81     {
       
    82     return 0;
       
    83     }
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 // CPosLmEmptyIterator::GetItemIdsL
       
    87 //
       
    88 // (other items were commented in a header).
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 void CPosLmEmptyIterator::GetItemIdsL(
       
    92     RArray<TPosLmItemId>& /*aIdArray*/,
       
    93     TInt /*aStartIndex*/,
       
    94     TInt /*aNumOfItems*/)
       
    95     {
       
    96     Panic(KPosLandmarksClientPanic,
       
    97         EPosSpecifiedIntervalLiesOutsideIteratedSet);
       
    98     }
       
    99 
       
   100 //  End of File