PECengine/PresenceManager2/SrcSearch/CPEngSearchResultEntry.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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 results.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGSEARCHRESULTENTRY_H
       
    19 #define CPENGSEARCHRESULTENTRY_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 #include <Badesca.h>
       
    24 
       
    25 //FORWARD DECLARATIONS
       
    26 class CPEngSearchResult2;
       
    27 
       
    28 
       
    29 /**
       
    30  * Search results entry.
       
    31  *
       
    32  * @lib
       
    33  * @since 3.0
       
    34  */
       
    35 NONSHARABLE_CLASS( CPEngSearchResultEntry ) : public CBase
       
    36     {
       
    37 
       
    38     //-----------------------------------------------------------------------
       
    39 public: /* Construction */
       
    40 
       
    41     /**
       
    42      * Instantiates CPEngSearchResultEntry object.
       
    43      *
       
    44      * @return New CPEngSearchResultEntry instance.
       
    45      */
       
    46     static CPEngSearchResultEntry* NewL();
       
    47     static CPEngSearchResultEntry* NewLC();
       
    48 
       
    49 
       
    50     /**
       
    51      * Destructor.
       
    52      * Virtual by CBase.
       
    53      */
       
    54     ~CPEngSearchResultEntry();
       
    55 
       
    56 
       
    57 
       
    58 protected:  // Constructor
       
    59 
       
    60     /**
       
    61      * C++ default constructor.
       
    62      */
       
    63     CPEngSearchResultEntry();
       
    64 
       
    65 
       
    66     /**
       
    67      * Symbian OS constructor.
       
    68      */
       
    69     void ConstructL();
       
    70 
       
    71 
       
    72     //-----------------------------------------------------------------------
       
    73 public: /* Interface */
       
    74 
       
    75 
       
    76     /**
       
    77      * Interface getter.
       
    78      *
       
    79      * @since 3.0
       
    80      * @return Reference to interface.
       
    81      */
       
    82     CPEngSearchResult2& Interface();
       
    83 
       
    84 
       
    85     /**
       
    86      *
       
    87      *
       
    88      * @since 3.0
       
    89      *
       
    90      */
       
    91     CDesC16Array& UserResults();
       
    92 
       
    93 
       
    94     /**
       
    95      *
       
    96      *
       
    97      * @since 3.0
       
    98      *
       
    99      */
       
   100     void SetDetails( TInt aFindingsCount,
       
   101                      TInt aContinuationIndex,
       
   102                      TBool aSearchCompleted );
       
   103 
       
   104 
       
   105     /**
       
   106      *
       
   107      *
       
   108      * @since 3.0
       
   109      *
       
   110      */
       
   111     void Reset();
       
   112 
       
   113 
       
   114 
       
   115 
       
   116 private: //Data
       
   117 
       
   118 
       
   119     /**
       
   120      * Interface is friend.
       
   121      * @since 3.0
       
   122      */
       
   123     friend class CPEngSearchResult2;        // CSI: 36 #
       
   124 
       
   125     //OWN: Exported class interface
       
   126     CPEngSearchResult2*   iInterface;
       
   127 
       
   128     //OWN: The current findings count
       
   129     TInt    iCurrentFindingsCount;
       
   130 
       
   131     //OWN: Index to continue
       
   132     TInt    iContinuationIndex;
       
   133 
       
   134     //OWN: Is search completed
       
   135     TBool   iSearchCompleted;
       
   136 
       
   137     //OWN: User results
       
   138     CDesC16ArraySeg  iUserResults;
       
   139     };
       
   140 
       
   141 #endif      //CPENGSEARCHRESULTENTRY_H
       
   142 
       
   143 
       
   144