sapi_logging/tsrc/testing/tloggingservicetest/inc/logobserver.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 2006-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 the License "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:   includes observer methods on the logdatabase.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef LOGOBSERVER_H
       
    22 #define LOGOBSERVER_H
       
    23 
       
    24 /**
       
    25  *Forward Declarations
       
    26  */
       
    27  class CLogClient ;
       
    28  class CBase ;
       
    29  class MLogClientChangeObserver ;
       
    30  class RFs ;
       
    31  
       
    32 /**
       
    33  * Observer Class Abstraction
       
    34  */
       
    35  
       
    36 class CLogObserver : public CBase 
       
    37     {
       
    38     public :
       
    39     
       
    40         /**
       
    41         * Two phase constructors
       
    42         */
       
    43         static CLogObserver* NewL() ;
       
    44         static CLogObserver* NewLC() ;
       
    45         
       
    46         /**
       
    47         * ConstructL method, to construct the clients
       
    48         */
       
    49         void ConstructL() ;
       
    50         
       
    51         /**
       
    52         * SetObserver methods, sets the observer for the 
       
    53         * changes happening in the database
       
    54         */
       
    55         
       
    56         void SetObserverL(MLogClientChangeObserver* aObserver) ;
       
    57         
       
    58         /**
       
    59         * Default Destructors
       
    60         */
       
    61         
       
    62         ~CLogObserver() ;
       
    63         
       
    64         protected :
       
    65         
       
    66         /**
       
    67         * Protected Constructor
       
    68         */
       
    69         
       
    70         CLogObserver() ;
       
    71         
       
    72     private :
       
    73     
       
    74         /**
       
    75         * datamembers
       
    76         */
       
    77         RFs iFs ;
       
    78         CLogClient* iLogClient ;     
       
    79     };
       
    80 #endif