recents_plat/logs_services_api/inc/logsservices.h
changeset 0 4a5361db8937
child 6 41c0a814d878
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     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 #ifndef LOGSSERVICES_H
       
    18 #define LOGSSERVICES_H
       
    19 
       
    20 #include <QString>
       
    21 #include <logsexport.h> 
       
    22 
       
    23 /**
       
    24 * Logs application services
       
    25 */
       
    26 class LogsServices
       
    27 {
       
    28     public:
       
    29     
       
    30     enum LogsView{
       
    31         ViewAll,
       
    32         ViewReceived,
       
    33         ViewCalled,
       
    34         ViewMissed
       
    35     };
       
    36     /**
       
    37      * Requests to start Logs application. If Logs is already running,
       
    38      * activates the requested view.
       
    39      *
       
    40      * @param activatedView   The view to be activated in Logs.
       
    41      * @param showDialpad     Specifies whether dialpad should be shown on top
       
    42      *                        of the activated view
       
    43      * @param number          Predefined number for dialpad
       
    44      * @return 0 if started/activated succesfully
       
    45      */
       
    46     LOGSSERVICES_EXPORT static int start(
       
    47         LogsView activatedView, bool showDialpad, const QString& number = QString());
       
    48 
       
    49 };
       
    50 
       
    51 #endif  //LOGSSERVICES_H