bluetooth/gavdp/test/tavsrcUI.h
branchRCL_3
changeset 24 e9b924a62a66
parent 0 29b1cd4cb562
equal deleted inserted replaced
23:5b153be919d4 24:e9b924a62a66
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef TAVSRCUI_H
       
    17 #define TAVSRCUI_H
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <e32cons.h>
       
    21 
       
    22 static const TUint KIconSize = 36;
       
    23 static const TUint KIconIndent = 36;
       
    24 static const TUint KPlayListX = 2;
       
    25 
       
    26 class CStreamerUI : public CBase
       
    27 	{
       
    28 public:
       
    29 	static CStreamerUI* NewL(TBool aDisplayPlaylist, TBool aDisplayChunkyIcon);
       
    30 	~CStreamerUI();
       
    31 	void Play();
       
    32 	void Pause();
       
    33 	void Stop();
       
    34 	void AddTitle(const TDesC& aTitle);
       
    35 	void Next();
       
    36 	void Prev();
       
    37 	void First();
       
    38 	
       
    39 private:
       
    40 	CStreamerUI();
       
    41 	void ConstructL(TBool aDisplayPlaylist, TBool aDisplayChunkyIcon);
       
    42 	void ClearPointer();
       
    43 	void DrawPointer();
       
    44 
       
    45 private:
       
    46 	CConsoleBase* iIconConsole;
       
    47 	CConsoleBase* iPlayListConsole;
       
    48 	TInt iPlayListY;
       
    49 	};
       
    50 
       
    51 class CProgressBar : public CBase
       
    52 	{
       
    53 public:
       
    54 	static CProgressBar* NewL(TInt aMaximum);
       
    55 	void Increment(TInt aStep);
       
    56 	~CProgressBar();
       
    57 	
       
    58 private:
       
    59 	CProgressBar(TInt aMaximum);
       
    60 	void ConstructL();
       
    61 	void Redraw();
       
    62 	
       
    63 private:
       
    64 	TInt	iMax;
       
    65 	TInt	iValue;
       
    66 	CConsoleBase*	iConsole;
       
    67 	};
       
    68 
       
    69 #endif // TAVSRCUI_H