ipsservices/ipssosplugin/inc/ipsplgmsgswap.h
changeset 0 8466d47a6819
child 24 d189ee25cf9d
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Swapper class for message sorting function
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IPSPLGMSGSWAP_H
       
    20 #define IPSPLGMSGSWAP_H
       
    21 
       
    22 #include <e32std.h>    // TSwap
       
    23 
       
    24 class CMsvEntry;
       
    25 
       
    26 /**
       
    27  *  Swaps the message objects inside CMsvEntry. Intended to be used with
       
    28  *  User::QuickSort().
       
    29  *
       
    30  *  @code
       
    31  *  @endcode
       
    32  *
       
    33  *  @lib ipssosplugin.dll
       
    34  *  @since 
       
    35  */
       
    36 class TIpsPlgMsgSwap : public TSwap
       
    37     {
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Constructor.
       
    42      *
       
    43      * @since 
       
    44      * @param aFolderEntry Folder to be sorted
       
    45      */
       
    46     TIpsPlgMsgSwap( CMsvEntry& aFolderEntry );
       
    47 
       
    48     /**
       
    49      * From TSwap
       
    50      */
       
    51     virtual void Swap(TInt aLeft, TInt aRight) const;
       
    52     
       
    53 private:
       
    54     // Inhibit the usage of the default constructor
       
    55     TIpsPlgMsgSwap();
       
    56     
       
    57 private:
       
    58     // Folder objects the messages of which are sorted. Not owned.    
       
    59     CMsvEntry& iFolderEntry;
       
    60     };
       
    61 
       
    62 #endif // IPSPLGMSGSWAP_H