inc/NPRStoryListBoxView.h
author John Kern <johnk@symbian.org>
Fri, 24 Jul 2009 06:47:26 -0700
changeset 1 7c64bff801d1
parent 0 0049171ecffb
permissions -rw-r--r--
added new line to header to check hg permissions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     1
/*
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     2
 ==========================================================================================
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     3
 Name	: NPRStoryListBoxView.h
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     4
 Author	: Symsource
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     5
 
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     6
 Copyright (c) 2009 Symbian Foundation Ltd
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     7
 This component and the accompanying materials are made available
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     8
 under the terms of the License "Eclipse Public License v1.0"
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
     9
 which accompanies this distribution, and is available
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    10
 at the URL "http://www.eclipse.org/legal/epl-v10.html".
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    11
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    12
 Initial Contributors:
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    13
 - Symsource
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    14
 
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    15
 Contributors:
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    16
 - Symsource
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    17
 
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    18
 Description :  AknView for wrapping the container to show the NPR's story list
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    19
 ==========================================================================================
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    20
 */
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    21
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    22
#ifndef __NPR_STORY_LIST_BOX_VIEW_H__
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    23
#define __NPR_STORY_LIST_BOX_VIEW_H__
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    24
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    25
#include <aknview.h>
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    26
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    27
class CNPRStoryListBox;
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    28
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    29
/**
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    30
 * Avkon view class for NPRStoryListBoxView. It is register with the view server
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    31
 * by the AppUi. It owns the container control.
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    32
 * @class	CNPRStoryListBoxView NPRStoryListBoxView.h
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    33
 */									
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    34
class CNPRStoryListBoxView : public CAknView
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    35
	{
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    36
public:
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    37
	static CNPRStoryListBoxView* NewL();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    38
	static CNPRStoryListBoxView* NewLC();        
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    39
	virtual ~CNPRStoryListBoxView();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    40
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    41
public:	
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    42
	// from base class CAknView
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    43
	TUid Id() const;
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    44
	void HandleCommandL(TInt aCommand);
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    45
	CNPRStoryListBox* CreateContainerL();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    46
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    47
protected:
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    48
	// from base class CAknView
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    49
	void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    50
	void DoDeactivate();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    51
	void HandleStatusPaneSizeChange();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    52
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    53
private:
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    54
	void SetupStatusPaneL();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    55
	void CleanupStatusPane();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    56
	
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    57
private:
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    58
	// constructors
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    59
	CNPRStoryListBoxView();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    60
	void ConstructL();
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    61
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    62
private:
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    63
	CNPRStoryListBox* iNPRStoryListBox;	
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    64
	};
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    65
0049171ecffb initial release
tahirm@symbian.org
parents:
diff changeset
    66
#endif // __NPR_STORY_LIST_BOX_VIEW_H__