emailservices/nmclientapi/inc/nmapieventnotifier_p.h
changeset 18 578830873419
child 20 ecc8def7944a
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     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 NMAPIEVENTNOTIFIERPRIVATE_H
       
    19 #define NMAPIEVENTNOTIFIERPRIVATE_H
       
    20 
       
    21 #include "nmprivateclasses.h"
       
    22 #include "nmcommon_api.h"
       
    23 #include "nmapiengine.h"
       
    24 
       
    25 namespace EmailClientApi
       
    26 {
       
    27 class NmEventNotifierPrivate : public QObject
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     NmEventNotifierPrivate(QObject *parent = 0);
       
    32     virtual ~NmEventNotifierPrivate();
       
    33 
       
    34     bool initializeEngine();
       
    35     void releaseEngine();
       
    36     void cancel();
       
    37 
       
    38 public slots:
       
    39     void emailStoreEvent(const NmApiMessage &events);
       
    40 
       
    41 public:
       
    42     QTimer *mEmitSignals;
       
    43     NmEngine *mEngine;
       
    44     QList<NmApiMessage> mBufferOfEvents;
       
    45     bool mIsRunning;
       
    46 };
       
    47 
       
    48 }
       
    49 
       
    50 #endif