photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp
changeset 2 7d9067c6fcb1
parent 1 9ba538e329bd
child 13 71da52165949
equal deleted inserted replaced
1:9ba538e329bd 2:7d9067c6fcb1
    42 #include <glxfetcherdialog.rsg>           // FOR GETTING VIEW ID AND RESOURCE ID
    42 #include <glxfetcherdialog.rsg>           // FOR GETTING VIEW ID AND RESOURCE ID
    43 #include "glxfetcherdialog.h"
    43 #include "glxfetcherdialog.h"
    44 #include "glxfetchercontainer.h"
    44 #include "glxfetchercontainer.h"
    45 #include "glxfetcher.hrh"
    45 #include "glxfetcher.hrh"
    46 
    46 
    47 #define GetAppUi() (dynamic_cast<CAknAppUi*>(iEikonEnv->EikAppUi()))
       
    48 const TInt KControlId = 1;
    47 const TInt KControlId = 1;
    49      
    48      
    50 //-----------------------------------------------------------------------------
    49 //-----------------------------------------------------------------------------
    51 // C++ default constructor.
    50 // C++ default constructor.
    52 //-----------------------------------------------------------------------------
    51 //-----------------------------------------------------------------------------
    90 	{
    89 	{
    91 	TRACER("CGlxFetcherDialog::~CGlxFetcherDialog");
    90 	TRACER("CGlxFetcherDialog::~CGlxFetcherDialog");
    92 	if(iFetcherContainer)
    91 	if(iFetcherContainer)
    93 	    {
    92 	    {
    94 	    // Restore the Toolbar as it was in the Calling application
    93 	    // Restore the Toolbar as it was in the Calling application
    95 	    if(GetAppUi()->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
    94 	    if(iAvkonAppUi->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
    96 	        {
    95 	        {
    97 	        GetAppUi()->CurrentFixedToolbar()->SetToolbarVisibility(ETrue);
    96 	        iAvkonAppUi->CurrentFixedToolbar()->SetToolbarVisibility(ETrue);
    98 	        }
    97 	        }
    99 
    98 
   100 	    TRAP_IGNORE(iFetcherContainer->SetPreviousTitleL());
    99 	    TRAP_IGNORE(iFetcherContainer->SetPreviousTitleL());
   101 		}
   100 		}
   102 	if (iUiUtility)
   101 	if (iUiUtility)
   114 	TRACER("CGlxFetcherDialog::ConstructL");
   113 	TRACER("CGlxFetcherDialog::ConstructL");
   115 	// always first call the base class
   114 	// always first call the base class
   116     CAknDialog::ConstructL( R_MULTISELECT_FETCHER_MENUBAR );
   115     CAknDialog::ConstructL( R_MULTISELECT_FETCHER_MENUBAR );
   117 
   116 
   118     // Get the Instance of the toolbar and disable it as it is note required in the Fetcher Application
   117     // Get the Instance of the toolbar and disable it as it is note required in the Fetcher Application
   119     if(GetAppUi()->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
   118     if (iAvkonAppUi->CurrentFixedToolbar())  // there is Hardware Specific Output for Fixed ToolBar
   120         {
   119         {
   121         GetAppUi()->CurrentFixedToolbar()->SetToolbarVisibility(EFalse);
   120         iAvkonAppUi->CurrentFixedToolbar()->SetToolbarVisibility(EFalse);
   122         }
   121         }
   123 	// Get the Hitchcock environment.
   122 	// Get the Hitchcock environment.
   124     iUiUtility = CGlxUiUtility::UtilityL();
   123     iUiUtility = CGlxUiUtility::UtilityL();
   125     iEnv = iUiUtility->Env();
   124     iEnv = iUiUtility->Env();
   126     iFetchUri = EFalse;
   125     iFetchUri = EFalse;