photosgallery/controllers/fetcher/src/glxfetcher.cpp
branchRCL_3
changeset 75 01504893d9cb
parent 60 5b3385a43d68
equal deleted inserted replaced
68:5b238bc8ffb6 75:01504893d9cb
   197             GLX_LOG_INFO("CGlxFetcher::LaunchL  - Error: Unsupported media type, Leaving");
   197             GLX_LOG_INFO("CGlxFetcher::LaunchL  - Error: Unsupported media type, Leaving");
   198             User::Leave( KErrNotSupported );
   198             User::Leave( KErrNotSupported );
   199 	        }
   199 	        }
   200 	    }
   200 	    }
   201 	// create the dialog first
   201 	// create the dialog first
   202 	iDialog = CGlxFetcherDialog::NewL(aSelectedFiles, iVerifier, iFilterType,
   202 	iDialog =
   203             *iTitle, iIsMultiSelection);
   203 	    CGlxFetcherDialog::NewL( aSelectedFiles, iVerifier ,iFilterType ,*iTitle, iIsMultiSelection );
   204 	// Returns zero when Fetcher is cancelled by User.
   204 	// Returns zero when Fetcher is cancelled by User.
   205 	
   205 	
   206 	buttonId = iDialog->ExecuteLD( R_GLX_FETCHER_DIALOG );
   206 	if( iIsMultiSelection )
       
   207 		{
       
   208 		buttonId = iDialog->ExecuteLD( R_MODAL_MULTI_DIALOG );
       
   209 		}
       
   210 	else
       
   211 		{
       
   212 		buttonId = iDialog->ExecuteLD( R_MODAL_SINGLE_DIALOG );	
       
   213 		}
   207     // Return false if the fetcher was canceled by user
   214     // Return false if the fetcher was canceled by user
   208 	return ( 0 != buttonId && aSelectedFiles.Count()!=0);
   215 	return ( 0 != buttonId && aSelectedFiles.Count()!=0);
   209   	}
   216   	}
   210 
   217 
   211 // ---------------------------------------------------------------------------
   218 // ---------------------------------------------------------------------------