diff -r 000000000000 -r ed9695c8bcbe vtuis/videotelui/src/commands/cvtuicommandmodifybase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vtuis/videotelui/src/commands/cvtuicommandmodifybase.cpp Mon Nov 23 14:47:47 2009 +0200 @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2006 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: Command context base class. +* +*/ + + +#include + +#include "cvtuicommandmodifybase.h" + +// ======== LOCAL FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CVtUiCommandModifyBase::CVtUiCommandModifyBase +// --------------------------------------------------------------------------- +// +CVtUiCommandModifyBase::CVtUiCommandModifyBase( TInt aPriority ) + : iPriority( aPriority ) + { + } + +// --------------------------------------------------------------------------- +// CVtUiCommandModifyBase::PriorityOrder +// --------------------------------------------------------------------------- +// +TLinearOrder< CVtUiCommandModifyBase > CVtUiCommandModifyBase::PriorityOrder() + { + return TLinearOrder< CVtUiCommandModifyBase >( PriorityOrderFunc ); + } + +// --------------------------------------------------------------------------- +// CVtUiCommandModifyBase::PriorityOrderFunc +// --------------------------------------------------------------------------- +// +TInt CVtUiCommandModifyBase::PriorityOrderFunc( + const CVtUiCommandModifyBase& aM1, const CVtUiCommandModifyBase& aM2 ) + { + return aM1.iPriority - aM2.iPriority; + } +