phonebookengines/VirtualPhonebook/VPbkCntModel/inc/CNamedRemoteViewHandle.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2007-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:  The virtual phonebook named remote view .
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CNAMEDREMOTEVIEWHANDLE_H
       
    20 #define CNAMEDREMOTEVIEWHANDLE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <cntviewbase.h>
       
    25 
       
    26 namespace VPbkCntModel {
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  * Named remote view entry.
       
    35  */
       
    36 NONSHARABLE_CLASS( CNamedRemoteViewHandle ) : 
       
    37         public CBase, 
       
    38         private MContactViewObserver
       
    39     {
       
    40     public: // constructor and destructor
       
    41         /**
       
    42          * Constructor.
       
    43          */
       
    44         static CNamedRemoteViewHandle* NewLC();
       
    45 
       
    46         /**
       
    47          * Destructor.
       
    48          */
       
    49         ~CNamedRemoteViewHandle();
       
    50 
       
    51     public: // interface
       
    52         /**
       
    53          * Create remote view.
       
    54          */
       
    55         void CreateRemoteViewL(
       
    56                 const TDesC& aViewName,
       
    57                 CContactDatabase& aDatabase,
       
    58                 RContactViewSortOrder aSortOrder,
       
    59                 TContactViewPreferences aViewPreferences);
       
    60 
       
    61     private: // from MContactViewObserver
       
    62         void HandleContactViewEvent(
       
    63              const CContactViewBase& aView, 
       
    64              const TContactViewEvent& aEvent);
       
    65 
       
    66     private: // implementation
       
    67         CNamedRemoteViewHandle();
       
    68         void ConstructL();
       
    69 
       
    70     private: // data members
       
    71         /// Own: remote view handle
       
    72         CContactNamedRemoteView* iRemoteViewHandle;
       
    73     };
       
    74 
       
    75 } // namespace VPbkCntModel
       
    76 
       
    77 #endif // CNAMEDREMOTEVIEWHANDLE_H
       
    78 
       
    79 // End of File