📄 bencoolensettingsview.h
字号:
/*
* BencoolenSettingsView.h
*
* Copyright 2005 - 2007, Antony Pranata
* http://www.antonypranata.com
*
* Project: Screenshot for Symbian OS
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef BENCOOLENSETTINGSVIEW_H
#define BENCOOLENSETTINGSVIEW_H
// INCLUDES
#include <symbianvariant.h>
#include <aknview.h>
// FORWARD DECLARATIONS
class CBencoolenSettingsListBox;
class CScreenShotData;
// CLASS DECLARATION
/**
* CBencoolenSettingsView view class.
*/
class CBencoolenSettingsView: public CAknView
{
public: // Constructor and destructor
/**
* Two-phase constructor.
*/
static CBencoolenSettingsView* NewL(CScreenShotData* aScreenShotData);
/**
* Virtual destructor.
*/
virtual ~CBencoolenSettingsView();
public: // From CAknView
/**
* Returns the ID of view.
* @return The ID of view.
*/
TUid Id() const;
/**
* Handles the commands. if the command is command which is require to
* display outline-screen, the command is reported to container class.
* @param aCommand Command to be handled.
*/
void HandleCommandL(TInt aCommand);
#if (__S60__ >= 203)
public: // From CCoeControl
void HandleResourceChange(TInt aType);
#endif
private: // Constructors
/**
* C++ default constructor.
*/
CBencoolenSettingsView(CScreenShotData* aScreenShotData);
/**
* Second phase constructor.
*/
void ConstructL();
private: // New methods
/**
* Creates ListBox.
* @param aResourceId for ListBox initialization
*/
void CreateListBoxL(TInt aResourceId);
private: // from CAknView
/**
* Creates the Container class object.
* @param aPrevViewId aPrevViewId is not used.
* @param aCustomMessageId aCustomMessageId is not used.
* @param aCustomMessage aCustomMessage is not used.
*/
void DoActivateL(const TVwsViewId& aPrevViewId,
TUid aCustomMessageId, const TDesC8& aCustomMessage);
/**
* Deletes the Container class object.
*/
void DoDeactivate();
private: // Data
CBencoolenSettingsListBox* iListBox;
CScreenShotData* iScreenShotData; // not owned by this class
};
#endif // BENCOOLENSETTINGSVIEW_H
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -