emailcontacts/contactactionservice/inc/cfsccontactset.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Declaration of CFscContactSet.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_FSCCONTACTSET_H
       
    20 #define C_FSCCONTACTSET_H
       
    21 
       
    22 #include <e32base.h>
       
    23 //<cmail>
       
    24 #include "mfsccontactset.h"
       
    25 //</cmail>
       
    26 #include <MVPbkSingleContactOperationObserver.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CVPbkContactManager;
       
    30 class MVPbkContactLinkArray;
       
    31 
       
    32 
       
    33 /**
       
    34  *  Contact set.
       
    35  *  Implementation of a contact set.
       
    36  *
       
    37  *  @since S60 3.1
       
    38  */
       
    39 class CFscContactSet : 
       
    40     public CBase, 
       
    41     public MFscContactSet, 
       
    42     public MVPbkSingleContactOperationObserver
       
    43     {
       
    44 
       
    45 public: // Constructors and destructor
       
    46 
       
    47     /**
       
    48      * Constructor.
       
    49      *
       
    50      * @param aVPbkContactManager Contact manager     
       
    51      */
       
    52     CFscContactSet( CVPbkContactManager& aVPbkContactManager );
       
    53            
       
    54     /**
       
    55      * Destructor.
       
    56      */
       
    57     virtual ~CFscContactSet();
       
    58    
       
    59 public: // From base class MFscContactSet
       
    60 
       
    61     /**
       
    62      * Contact count of group.
       
    63      *
       
    64      * @param aStoreContact Group
       
    65      * @return group item count
       
    66      */
       
    67     TInt GroupContactCountL( MVPbkStoreContact& aStoreContact );
       
    68     
       
    69     /**
       
    70      * Asynchronous operation for retrieving contact from group.
       
    71      *
       
    72      * @param aStoreContact group
       
    73      * @param aIndex contsct index
       
    74      * @param aObserver operation observer
       
    75      */
       
    76     void GetGroupContactL( MVPbkStoreContact& aStoreContact, 
       
    77             TInt aIndex, MFscContactSetObserver* aObserver );
       
    78 
       
    79 protected: // Private members
       
    80     
       
    81     /**
       
    82      * Virtual Phonebook contact manager.
       
    83      * Not own.
       
    84      */
       
    85     CVPbkContactManager& iVPbkContactManager;
       
    86     
       
    87     /**
       
    88      * Asynchronous operation observer.
       
    89      * Not own.
       
    90      */
       
    91     MFscContactSetObserver* iObserver;
       
    92     
       
    93     /**
       
    94      * Virtual Phonebook operation handle - group contact retrieval.
       
    95      * Own.
       
    96      */
       
    97     MVPbkContactOperationBase* iVPbkOperationGetGroupContact;
       
    98     
       
    99     /**
       
   100      * Contact link array needed by for handling async GetGroupContactL.
       
   101      */
       
   102     MVPbkContactLinkArray* iContactLinkArray;
       
   103     
       
   104     };
       
   105 
       
   106 #endif // C_FSCCONTACTSET_H