1.1 --- a/epoc32/include/msvarray.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,106 +0,0 @@
1.4 -// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -#if !defined(__MSVARRAY_H__)
1.20 -#define __MSVARRAY_H__
1.21 -
1.22 -#if !defined(__MSVSTD_H__)
1.23 -#include <msvstd.h>
1.24 -#endif
1.25 -
1.26 -//*************************
1.27 -// class TKeyArrayFixPtr
1.28 -//*************************
1.29 -
1.30 -class TKeyArrayFixPtr : public TKeyArrayFix
1.31 -//
1.32 -// Generic Key class for sorting arrays of pointers in flat arrays.
1.33 -//
1.34 -/**
1.35 -@internalComponent
1.36 -@released
1.37 -*/
1.38 - {
1.39 -public:
1.40 - inline TKeyArrayFixPtr(TInt anOffset,TKeyCmpText aType);
1.41 - inline TKeyArrayFixPtr(TInt anOffset,TKeyCmpText aType,TInt aLength);
1.42 - inline TKeyArrayFixPtr(TInt anOffset,TKeyCmpNumeric aType);
1.43 - // At returns dereferenced pointer to objects (but not index)
1.44 - IMPORT_C TAny* At(TInt anIndex) const;
1.45 - };
1.46 -
1.47 -
1.48 -//**********************************
1.49 -// CMsvEntryArray
1.50 -//**********************************
1.51 -//
1.52 -// The array of TMsvEntry pointers
1.53 -//
1.54 -
1.55 -class CMsvEntryArray : public CArrayPtrFlat<const TMsvEntry>
1.56 -/**
1.57 -@internalComponent
1.58 -@released
1.59 -*/
1.60 - {
1.61 -public:
1.62 - IMPORT_C static CMsvEntryArray* NewL(const CArrayFix<TUid>& iMtmList);
1.63 - IMPORT_C static CMsvEntryArray* NewLC(const CArrayFix<TUid>& iMtmList);
1.64 - IMPORT_C void SortL(TMsvSelectionOrdering aOrdering);
1.65 - IMPORT_C ~CMsvEntryArray();
1.66 -private:
1.67 - enum TGroupCriterion
1.68 - {
1.69 - EGroupByStandardFolders,
1.70 - EGroupByType,
1.71 - EGroupByPriority,
1.72 - EGroupByMtm,
1.73 - EStopGrouping
1.74 - };
1.75 -private:
1.76 - TInt NumberOfArraysToSplitIntoL(TGroupCriterion aGroupCriterion);
1.77 - TBool OkToGroup(TGroupCriterion aGroupCriterion,TMsvSelectionOrdering aOrdering) const;
1.78 - TInt ArrayId(const TMsvEntry* aEntry,TGroupCriterion aGroupCriterion) const;
1.79 - void GroupL(TGroupCriterion aGroupCriterion,TMsvSelectionOrdering aOrdering,TBool aDoSort);
1.80 - void ReverseOrder(TMsvSorting aSortType);
1.81 - void ReverseOrder();
1.82 - CMsvEntryArray(const CArrayFix<TUid>& iMtmList);
1.83 - TKeyArrayFixPtr MessageSortKey(TMsvSorting aSortType) const;
1.84 -
1.85 - TInt FindSubjectStart(const TDesC& aSubject, const TDesC& aSubjectSkipString) const;
1.86 - void SubjectBasedSortL(TBool aReverse, const TDesC& aSubjectSkipString);
1.87 - void DetailBasedSortL();
1.88 -
1.89 -private:
1.90 - const CArrayFix<TUid>& iOrigMtmList;
1.91 - CArrayFix<TUid>* iActualMtmList;
1.92 - };
1.93 -
1.94 -// inline
1.95 -
1.96 -inline TKeyArrayFixPtr::TKeyArrayFixPtr(TInt anOffset,TKeyCmpText aType)
1.97 - : TKeyArrayFix(anOffset,aType)
1.98 - {}
1.99 -
1.100 -inline TKeyArrayFixPtr::TKeyArrayFixPtr(TInt anOffset,TKeyCmpText aType,TInt aLength)
1.101 - : TKeyArrayFix(anOffset,aType,aLength)
1.102 - {}
1.103 -
1.104 -inline TKeyArrayFixPtr::TKeyArrayFixPtr(TInt anOffset,TKeyCmpNumeric aType)
1.105 - : TKeyArrayFix(anOffset,aType)
1.106 - {}
1.107 -
1.108 -
1.109 -#endif