diff -r 26a1709b9fec -r 14979e23cb5e inc/mpcommondefs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inc/mpcommondefs.h Tue Aug 31 15:12:29 2010 +0300 @@ -0,0 +1,82 @@ +/* +* 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: Common definitios. +* +*/ + + + +#ifndef MPCOMMONDEFS_H +#define MPCOMMONDEFS_H + +#include + +namespace MpCommon +{ + // UID definition + const long int KMusicPlayerUid = {0x10207C62}; + const long int KCollectionViewUid = {0x10207C63}; + const long int KPlaybackViewUid = {0x10207C64}; + const long int KSettingsViewUid = {0x10207C66}; + const long int KDetailsViewUid = {0x2002D0AA}; + const long int KMediaWallViewUid = {0x10207C94}; + + /*! + Command code sent from the views to the application main window + through command signal. + */ + enum MpCommandCode { + Exit, + SendToBackground, + ActivateCollectionView, + ActivatePlaybackView, + ActivateSettingsView, + ActivateDetailsView, + ActivatePreviousView + }; + + /*! + View's mode. + DefaultView - Default mode; normal Music Player operation. + FetchView - Music fetcher mode; launched through QtHighway interface. + */ + enum MpViewMode { + DefaultView, + FetchView, + EmbeddedView + }; + + /*! + Thumbnail type, used in collection model. + */ + enum MpThumbType{ + ListThumb, + TBoneThumb, + MediaWallThumb, + }; + + /*! + Volume property, used in MpMpxPlaybackFramework and MpVolumeSlider. + */ + enum MpVolumeProperty{ + MaxVolume, + Volume, + MuteState + }; +} + + // Register MpVolumeProperty so can be used in signal and slot connection + Q_DECLARE_METATYPE( MpCommon::MpVolumeProperty ) + +#endif // MPCOMMONDEFS_H