summaryrefslogtreecommitdiffstats
path: root/src/s60main/qts60mainappui.cpp
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-08-04 09:47:00 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-08-04 09:47:00 (GMT)
commit7ff5fd86376714aa4de5dae7e8ef7576d69b5feb (patch)
tree0221d8e4fbd6083060c8e9e07bab8e8f6ce2a60a /src/s60main/qts60mainappui.cpp
parentfbe7f34f46de3e0732489c0043f89cc5aa535ecb (diff)
downloadQt-7ff5fd86376714aa4de5dae7e8ef7576d69b5feb.zip
Qt-7ff5fd86376714aa4de5dae7e8ef7576d69b5feb.tar.gz
Qt-7ff5fd86376714aa4de5dae7e8ef7576d69b5feb.tar.bz2
Applied Qt coding conventions for s60main
Diffstat (limited to 'src/s60main/qts60mainappui.cpp')
-rw-r--r--src/s60main/qts60mainappui.cpp37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/s60main/qts60mainappui.cpp b/src/s60main/qts60mainappui.cpp
index ef54417..ea6c3d4 100644
--- a/src/s60main/qts60mainappui.cpp
+++ b/src/s60main/qts60mainappui.cpp
@@ -67,7 +67,7 @@ void CQtS60MainAppUi::ConstructL()
// objects can still exist in static data at that point. Instead we will print relevant information
// so that comparative checks may be made for memory leaks, using ~SPrintExitInfo in corelib.
iEikonEnv->DisableExitChecks(ETrue);
-
+
// Initialise app UI with standard value.
// ENoAppResourceFile and ENonStandardResourceFile makes UI to work without
// resource files in most SDKs. S60 3rd FP1 public seems to require resource file
@@ -76,11 +76,11 @@ void CQtS60MainAppUi::ConstructL()
CEikButtonGroupContainer* nativeContainer = Cba();
nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS);
-
+
// Create async callback to call Qt main,
// this is required to give S60 app FW to finish starting correctly
- TCallBack callBack( OpenCMainStaticCallBack, this );
- iAsyncCallBack = new(ELeave) CAsyncCallBack( callBack, CActive::EPriorityIdle );
+ TCallBack callBack(OpenCMainStaticCallBack, this);
+ iAsyncCallBack = new(ELeave) CAsyncCallBack(callBack, CActive::EPriorityIdle);
iAsyncCallBack->Call();
}
@@ -109,7 +109,7 @@ CQtS60MainAppUi::~CQtS60MainAppUi()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
-void CQtS60MainAppUi::HandleCommandL( TInt aCommand )
+void CQtS60MainAppUi::HandleCommandL(TInt aCommand)
{
if (qApp)
qApp->symbianHandleCommand(aCommand);
@@ -123,7 +123,7 @@ void CQtS60MainAppUi::HandleCommandL( TInt aCommand )
void CQtS60MainAppUi::HandleResourceChangeL(TInt aType)
{
CAknAppUi::HandleResourceChangeL(aType);
-
+
if (qApp)
qApp->symbianResourceChange(aType);
}
@@ -157,9 +157,9 @@ void CQtS60MainAppUi::HandleStatusPaneSizeChange()
// Called asynchronously from ConstructL() - passes call to nan static method
// -----------------------------------------------------------------------------
//
-TInt CQtS60MainAppUi::OpenCMainStaticCallBack( TAny* aObject )
+TInt CQtS60MainAppUi::OpenCMainStaticCallBack(TAny* aObject)
{
- CQtS60MainAppUi* myObj = static_cast<CQtS60MainAppUi*>( aObject );
+ CQtS60MainAppUi* myObj = static_cast<CQtS60MainAppUi*>(aObject);
myObj->OpenCMainCallBack();
return 0;
}
@@ -186,30 +186,29 @@ void CQtS60MainAppUi::DynInitMenuBarL(TInt, CEikMenuBar *)
void CQtS60MainAppUi::DynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane)
{
- if (aResourceId == R_QT_WRAPPERAPP_MENU){
+ if (aResourceId == R_QT_WRAPPERAPP_MENU) {
if (aMenuPane->NumberOfItemsInPane() <= 1)
qt_symbian_show_toplevel(aMenuPane);
-
- }
- else if( aResourceId != R_AVKON_MENUPANE_FEP_DEFAULT && aResourceId != R_AVKON_MENUPANE_EDITTEXT_DEFAULT && aResourceId != R_AVKON_MENUPANE_LANGUAGE_DEFAULT ){
+
+ } else if (aResourceId != R_AVKON_MENUPANE_FEP_DEFAULT && aResourceId != R_AVKON_MENUPANE_EDITTEXT_DEFAULT && aResourceId != R_AVKON_MENUPANE_LANGUAGE_DEFAULT) {
qt_symbian_show_submenu(aMenuPane, aResourceId);
}
}
-void CQtS60MainAppUi::RestoreMenuL(CCoeControl* aMenuWindow,TInt aMenuId,TMenuType aMenuType)
+void CQtS60MainAppUi::RestoreMenuL(CCoeControl* aMenuWindow, TInt aMenuId, TMenuType aMenuType)
{
- if ((aMenuId==R_QT_WRAPPERAPP_MENUBAR) || (aMenuId == R_AVKON_MENUPANE_FEP_DEFAULT)) {
+ if ((aMenuId == R_QT_WRAPPERAPP_MENUBAR) || (aMenuId == R_AVKON_MENUPANE_FEP_DEFAULT)) {
TResourceReader reader;
- iCoeEnv->CreateResourceReaderLC(reader,aMenuId);
+ iCoeEnv->CreateResourceReaderLC(reader, aMenuId);
aMenuWindow->ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy();
}
- if (aMenuType==EMenuPane)
- DynInitMenuPaneL(aMenuId,(CEikMenuPane*)aMenuWindow);
+ if (aMenuType == EMenuPane)
+ DynInitMenuPaneL(aMenuId, (CEikMenuPane*)aMenuWindow);
else
- DynInitMenuBarL(aMenuId,(CEikMenuBar*)aMenuWindow);
- }
+ DynInitMenuBarL(aMenuId, (CEikMenuBar*)aMenuWindow);
+}
// End of File