appinstall_plat/sifui_api/src/sifui.cpp
changeset 64 48c14c385b0e
parent 58 67f2119dc623
child 69 b18a4bf55ddb
equal deleted inserted replaced
58:67f2119dc623 64:48c14c385b0e
   163     {
   163     {
   164     return iPrivate->ShowGrantCapabilitiesL( aCapabilities );
   164     return iPrivate->ShowGrantCapabilitiesL( aCapabilities );
   165     }
   165     }
   166 
   166 
   167 // ---------------------------------------------------------------------------
   167 // ---------------------------------------------------------------------------
   168 // CSifUi::ShowSingleSelectionL()
   168 // CSifUi::ShowSelectLanguageL()
   169 // ---------------------------------------------------------------------------
   169 // ---------------------------------------------------------------------------
   170 //
   170 //
   171 EXPORT_C TBool CSifUi::ShowSingleSelectionL( const TDesC& aTitle,
   171 EXPORT_C TInt CSifUi::ShowSelectLanguageL( const RArray<TLanguage>& aLanguages )
   172             const MDesCArray& aSelectableItems, TInt& aSelectedIndex )
   172     {
   173     {
   173     return iPrivate->ShowSelectLanguageL( aLanguages );
   174     return iPrivate->ShowSingleSelectionL( aTitle, aSelectableItems, aSelectedIndex );
   174     }
   175     }
   175 
   176 
   176 // ---------------------------------------------------------------------------
   177 // ---------------------------------------------------------------------------
   177 // CSifUi::ShowSelectOptionsL()
   178 // CSifUi::ShowMultiSelectionL()
   178 // ---------------------------------------------------------------------------
   179 // ---------------------------------------------------------------------------
   179 //
   180 //
   180 EXPORT_C TBool CSifUi::ShowSelectOptionsL( const MDesCArray& aSelectableItems,
   181 EXPORT_C TBool CSifUi::ShowMultiSelectionL( const TDesC& aTitle,
   181         RArray<TInt>& aSelectedIndexes )
   182             const MDesCArray& aSelectableItems, RArray<TInt>& aSelectedIndexes )
   182     {
   183     {
   183     return iPrivate->ShowSelectOptionsL( aSelectableItems, aSelectedIndexes );
   184     return iPrivate->ShowMultiSelectionL( aTitle, aSelectableItems, aSelectedIndexes );
   184     }
   185     }
   185 
   186 
   186 
   187 
   187 // ---------------------------------------------------------------------------
   188 // ---------------------------------------------------------------------------
   188 // DEPRECATED: CSifUi::ShowFailedL()
   189 // CSifUi::ShowFailedL()
       
   190 // ---------------------------------------------------------------------------
   189 // ---------------------------------------------------------------------------
   191 //
   190 //
   192 // TODO: This function is deprecated, remove it completely.
   191 // TODO: This function is deprecated, remove it completely.
   193 EXPORT_C void CSifUi::ShowFailedL( TInt aErrorCode, const TDesC& aErrorMessage,
   192 EXPORT_C void CSifUi::ShowFailedL( TInt /*aErrorCode*/, const TDesC& /*aErrorMessage*/,
   194         const TDesC& aErrorDetails )
   193         const TDesC& /*aErrorDetails*/ )
   195     {
   194     {
   196     CSifUiErrorInfo* errorInfo = CSifUiErrorInfo::NewLC( Usif::EUnknown, aErrorCode,
   195     User::Invariant();
   197             0, aErrorMessage, aErrorDetails );
   196     }
   198     iPrivate->ShowFailedL( *errorInfo );
   197 
   199     CleanupStack::PopAndDestroy( errorInfo );
   198 // ---------------------------------------------------------------------------
   200     }
   199 // DEPRECATED: CSifUi::ShowSingleSelectionL()
       
   200 // ---------------------------------------------------------------------------
       
   201 //
       
   202 EXPORT_C TBool CSifUi::ShowSingleSelectionL( const TDesC& /*aTitle*/,
       
   203             const MDesCArray& /*aSelectableItems*/, TInt& /*aSelectedIndex*/ )
       
   204     {
       
   205     User::Invariant();
       
   206     return EFalse;  // for compiler
       
   207     }
       
   208 
       
   209 // ---------------------------------------------------------------------------
       
   210 // DEPRECATED: CSifUi::ShowMultiSelectionL()
       
   211 // ---------------------------------------------------------------------------
       
   212 //
       
   213 EXPORT_C TBool CSifUi::ShowMultiSelectionL( const TDesC& /*aTitle*/,
       
   214             const MDesCArray& /*aSelectableItems*/, RArray<TInt>& /*aSelectedIndexes*/ )
       
   215     {
       
   216     User::Invariant();
       
   217     return EFalse;  // for compiler
       
   218     }
       
   219 
   201 
   220 
   202 // ---------------------------------------------------------------------------
   221 // ---------------------------------------------------------------------------
   203 // CSifUi::CSifUi()
   222 // CSifUi::CSifUi()
   204 // ---------------------------------------------------------------------------
   223 // ---------------------------------------------------------------------------
   205 //
   224 //