ipsservices/ipssosplugin/inc/ipsplgmsgswap.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:41:10 +0300
changeset 23 2dc6caa42ec3
parent 18 578830873419
child 64 3533d4323edc
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 2007 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:  Swapper class for message sorting function
*
*/


#ifndef IPSPLGMSGSWAP_H
#define IPSPLGMSGSWAP_H

#include <e32std.h>    // TSwap

class CMsvEntry;

/**
 *  Swaps the message objects inside CMsvEntry. Intended to be used with
 *  User::QuickSort().
 *
 *  @code
 *  @endcode
 *
 *  @lib ipssosplugin.dll
 *  @since 
 */
NONSHARABLE_CLASS( TIpsPlgMsgSwap )
    : public TSwap
    {
public:

    /**
     * Constructor.
     *
     * @since 
     * @param aFolderEntry Folder to be sorted
     */
    TIpsPlgMsgSwap( CMsvEntry& aFolderEntry );

    /**
     * From TSwap
     */
    virtual void Swap(TInt aLeft, TInt aRight) const;
    
private:
    // Inhibit the usage of the default constructor
    TIpsPlgMsgSwap();
    
private:
    // Folder objects the messages of which are sorted. Not owned.    
    CMsvEntry& iFolderEntry;
    };

#endif // IPSPLGMSGSWAP_H