ncdengine/provider/client/inc/ncdnodeseenproxy.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-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:   ?description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCDNODESEENPROXY_H
       
    20 #define C_NCDNODESEENPROXY_H
       
    21 
       
    22 
       
    23 #include "ncdinterfacebaseproxy.h"
       
    24 #include "ncdnodeseen.h"
       
    25 
       
    26 class CNcdNodeProxy;
       
    27 
       
    28 /**
       
    29  *  Implementation of MNcdNodeSeen-interface
       
    30  *
       
    31  *  @see MNcdNodeSeen
       
    32  *  Implementation of MNcdNodeSeen-interface which acts also as
       
    33  *  a proxy.
       
    34  *
       
    35  *  @since S60 3.2
       
    36  */
       
    37 class CNcdNodeSeenProxy : public CNcdInterfaceBaseProxy,
       
    38                           public MNcdNodeSeen
       
    39     {
       
    40 public:
       
    41     static CNcdNodeSeenProxy* NewL(
       
    42         MCatalogsClientServer& aSession,
       
    43         TInt aHandle,
       
    44         CNcdNodeProxy& aNode );
       
    45         
       
    46     static CNcdNodeSeenProxy* NewLC(
       
    47         MCatalogsClientServer& aSession,
       
    48         TInt aHandle,
       
    49         CNcdNodeProxy& aNode );
       
    50         
       
    51     ~CNcdNodeSeenProxy();
       
    52         
       
    53     void InternalizeL();
       
    54        
       
    55     
       
    56 public: // from MNcdNodeSeen
       
    57 
       
    58     /**
       
    59      * @see MNcdNodeSeen
       
    60      */
       
    61     virtual TBool IsSeen() const;
       
    62     
       
    63     /**
       
    64      * @see MNcdNodeSeen
       
    65      */
       
    66     void SetSeenL();
       
    67 
       
    68 protected:
       
    69 
       
    70     CNcdNodeSeenProxy(
       
    71         MCatalogsClientServer& aSession,
       
    72         TInt aHandle,
       
    73         CNcdNodeProxy& aNode);
       
    74         
       
    75     void ConstructL();
       
    76     
       
    77 private:
       
    78     TBool iSeen;
       
    79     };
       
    80 
       
    81 #endif // C_NCDNODESEENPROXY_H