emailservices/nmclientapi/inc/nmapiprivateclasses.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:27:14 +0300
changeset 30 759dc5235cdb
parent 23 2dc6caa42ec3
child 68 83cc6bae1de8
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
 * 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 NmApiMessage
{
    NmApiAction action;
    NmApiObjectType objectType;

    QList<quint64> objectIds;

    quint64 mailboxId;
    quint64 folderId;

};
Q_DECLARE_METATYPE(NmApiMessage)

#endif /* NMAPIPRIVATECLASSES_H */