emailservices/nmclientapi/inc/nmapiprivateclasses.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:05:37 +0300
changeset 75 47d84de1c893
parent 23 2dc6caa42ec3
child 76 38bf5461e270
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:  
 *
 */

#ifndef NMAPIPRIVATECLASSES_H
#define NMAPIPRIVATECLASSES_H

#include <nmapidef.h>
#include <QList>
#include <QMetaType>

/*!
   Enum for internal info about changes in emial store
 */
enum NmApiAction
{
    ENew, EChange, EDeleted
};

/*!
   Enum for internal info about object type when change in email store is done.
 */
enum NmApiObjectType
{
    EMailbox, EFolder, EMessage
};

/*!
   It keeps data with information about change in email store.
   
   It is grouped in list of object by event when mailbox change and by
   event, mailboxId anf folderId when messages change.
 */
struct NmApiEvent
{
    NmApiAction action;
    NmApiObjectType objectType;

    QList<quint64> objectIds;

    quint64 mailboxId;
    quint64 folderId;

};
Q_DECLARE_METATYPE(NmApiEvent)

#endif /* NMAPIPRIVATECLASSES_H */