📄 oggsettingscontainer.h
字号:
/*
* Copyright (c) 2003 P.Wolff
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef OGGCONTAINER_H
#define OGGCONTAINER_H
// INCLUDES
#include "OggPlay.h"
#include <coecntrl.h>
#if defined(SERIES60)
#include <aknsettingitemlist.h>
#include <aknpopupsettingpage.h>
#endif
// COggSettingsContainer container control class.
class COggSettingsContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
void ConstructL(const TRect& aRect, TUid aId);
~COggSettingsContainer();
public: // New functions
void VolumeGainChangedL();
#if defined(MULTI_THREAD_PLAYBACK)
void BufferingModeChangedL();
#endif
public: // Functions from base classes
private: // Functions from base classes
void SizeChanged();
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private: //data
#if defined(SERIES60)
CAknSettingItemList* iListBox;
#endif
};
#if defined(SERIES60)
class CGainSettingItem;
class CBufferingModeSettingItem;
class COggplayDisplaySettingItemList : public CAknSettingItemList
{
public:
COggplayDisplaySettingItemList(COggPlayAppUi& aAppUi);
void VolumeGainChangedL();
#if defined(MULTI_THREAD_PLAYBACK)
void BufferingModeChangedL();
#endif
protected:
virtual CAknSettingItem* CreateSettingItemL(TInt aSettingId);
private:
TOggplaySettings& iData;
COggPlayAppUi& iAppUi;
CGainSettingItem* iGainSettingItem;
#if defined(MULTI_THREAD_PLAYBACK)
CBufferingModeSettingItem* iBufferingModeItem;
#endif
};
class CRepeatSettingItem : public CAknBinaryPopupSettingItem
{
public: // Constructors and destructor
CRepeatSettingItem(TInt aIdentifier, COggPlayAppUi& aAppUi);
private: // Functions from base classes
void EditItemL(TBool aCalledFromMenu);
private: //data
COggPlayAppUi& iAppUi;
};
class CGainSettingItem : public CAknEnumeratedTextPopupSettingItem
{
public: // Constructors and destructor
CGainSettingItem(TInt aIdentifier, COggPlayAppUi& aAppUi);
private: // Functions from base classes
void EditItemL(TBool aCalledFromMenu);
private: //data
COggPlayAppUi& iAppUi;
};
// Multi thread playback classes
class CBufferingModeSettingItem : public CAknEnumeratedTextPopupSettingItem
{
public: // Constructors and destructor
CBufferingModeSettingItem(TInt aIdentifier, COggPlayAppUi& aAppUi);
private: // Functions from base classes
void EditItemL(TBool aCalledFromMenu);
private: //data
COggPlayAppUi& iAppUi;
};
class CThreadPrioritySettingItem : public CAknBinaryPopupSettingItem
{
public: // Constructors and destructor
CThreadPrioritySettingItem(TInt aIdentifier, COggPlayAppUi& aAppUi);
private: // Functions from base classes
void EditItemL(TBool aCalledFromMenu);
private: //data
COggPlayAppUi& iAppUi;
};
class CAlarmSettingItem : public CAknBinaryPopupSettingItem
{
public: // Constructors and destructor
CAlarmSettingItem(TInt aIdentifier, COggPlayAppUi& aAppUi);
private: // Functions from base classes
void EditItemL(TBool aCalledFromMenu);
private: //data
COggPlayAppUi& iAppUi;
};
class CAlarmTimeSettingItem : public CAknTimeOrDateSettingItem
{
public: // Constructors and destructor
CAlarmTimeSettingItem(TInt aIdentifier, COggPlayAppUi& aAppUi);
private: // Functions from base classes
void EditItemL(TBool aCalledFromMenu);
private: //data
COggPlayAppUi& iAppUi;
};
#endif /* SERIES60 */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -