creator/inc/creator_logelement.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     1 /*
       
     2 * Copyright (c) 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CREATORLOGELEMENT_H_
       
    21 #define CREATORLOGELEMENT_H_
       
    22 
       
    23 #include "creator_scriptelement.h"
       
    24 
       
    25 namespace creatorlog
       
    26 {
       
    27     _LIT(KLog, "log");
       
    28     _LIT(KDirection, "direction");
       
    29     _LIT(KDuration, "duration");
       
    30     _LIT(KPhonenumber, "phonenumber");
       
    31     _LIT(KDatetime, "datetime");
       
    32     _LIT(KMissed, "missed");
       
    33     _LIT(KIn, "in");
       
    34     _LIT(KOut, "out");
       
    35 }
       
    36 
       
    37 class CCreatorLogElement : public CCreatorScriptElement
       
    38 {
       
    39 public:
       
    40     static CCreatorLogElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
    41     void ExecuteCommandL();
       
    42     
       
    43 protected:
       
    44     CCreatorLogElement(CCreatorEngine* aEngine);
       
    45     TInt GetLogCommandL( const TDesC& aFileIdStr, TBool aRandom ) const;
       
    46 };
       
    47 
       
    48 #endif /*CREATORLOGELEMENT_H_*/