activityfw/activitydatabase/hsactivitydbserver/inc/hsactivityserver.h
changeset 61 8e5041d13c84
child 66 32469d7d46ff
equal deleted inserted replaced
60:f62f87b200ec 61:8e5041d13c84
       
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSACTIVITYSERVER_H
       
    19 #define HSACTIVITYSERVER_H
       
    20 
       
    21 #include "hsactivitydbclientinterface.h"
       
    22 
       
    23 class HsActivityServerPrivate;
       
    24 
       
    25 /**
       
    26  * Class implemets server functionality to store and retrieve activity
       
    27  */
       
    28 class HsActivityServer
       
    29 {
       
    30 public:
       
    31     /**
       
    32      * Constructor
       
    33      * @param storage - reference to initialized activity storage
       
    34      */
       
    35     HsActivityServer(HsActivityDbClientInterface& storage);
       
    36     
       
    37     /**
       
    38      * Destructor
       
    39      */
       
    40     ~HsActivityServer();
       
    41     
       
    42     /**
       
    43      * Function establish server and initialize listening proces
       
    44      * @return true on succees, false otherwise 
       
    45      */
       
    46     bool start();
       
    47 private:
       
    48     /**
       
    49      * Private server implementation
       
    50      */
       
    51     HsActivityServerPrivate* d_ptr;
       
    52 };
       
    53 
       
    54 #endif //HSACTIVITYSERVER_H