installationservices/swi/source/plan/application.inl
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "siscontroller.h"
       
    20 
       
    21 namespace Swi
       
    22 {
       
    23 
       
    24 // CApplication inline functions
       
    25 
       
    26 inline const CUserSelections& CApplication::UserSelections() const
       
    27 	{
       
    28 	return *iUserSelections;
       
    29 	}
       
    30 
       
    31 inline CUserSelections& CApplication::UserSelections()
       
    32 	{
       
    33 	return *iUserSelections;
       
    34 	}
       
    35 
       
    36 inline TInt CApplication::AbsoluteDataIndex() const
       
    37 	{
       
    38    return iAbsoluteDataIndex;
       
    39    }
       
    40 
       
    41 inline void CApplication::SetAbsoluteDataIndex(TInt aDataIndex)
       
    42 	{
       
    43 	iAbsoluteDataIndex=aDataIndex;
       
    44 	}
       
    45 
       
    46 inline TBool CApplication::ShutdownAllApps() const
       
    47 	{
       
    48    return iShutdown;
       
    49    }
       
    50 
       
    51 inline void CApplication::SetShutdownAllApps(TBool aShutdown)
       
    52 	{
       
    53 	iShutdown=aShutdown;
       
    54 	}
       
    55 
       
    56 inline TBool CApplication::IsDeletablePreinstalled() const
       
    57 	{
       
    58 	return iDeletablePreinstalled;
       
    59 	}
       
    60 
       
    61 inline void CApplication::SetDeletablePreinstalled(TBool aDeletablePreinstalled)
       
    62 	{
       
    63 	iDeletablePreinstalled = aDeletablePreinstalled;
       
    64 	}
       
    65 
       
    66 inline TSisPackageTrust CApplication::Trust() const
       
    67 	{
       
    68 	__ASSERT_ALWAYS(iController != NULL, User::Invariant());
       
    69 	return iController->Trust();	
       
    70 	}
       
    71 
       
    72 inline void CApplication::SetStub(TBool aIsStub)
       
    73 	{
       
    74 	iIsStub = aIsStub;
       
    75 	}
       
    76 
       
    77 inline TBool CApplication::IsStub() const
       
    78 	{
       
    79 	return iIsStub;
       
    80 	}
       
    81 
       
    82 inline void CApplication::SetDeviceSupportedLanguages(const TBool aIsDeviceSupported) 
       
    83 	{
       
    84 	iHasDeviceSupportedLanguages = aIsDeviceSupported;
       
    85 	}
       
    86 
       
    87 inline void CApplication::SetLanguageMatch(const TBool aIsLanguageMatch) 
       
    88 	{
       
    89 	iHasMatchingLanguages = aIsLanguageMatch;
       
    90 	}
       
    91 
       
    92 inline TBool CApplication::IsLanguageMatch() const
       
    93 	{
       
    94 	return iHasMatchingLanguages;
       
    95 	}
       
    96 
       
    97 inline TBool CApplication::IsDeviceSupportedLanguages() const
       
    98 	{
       
    99 	return iHasDeviceSupportedLanguages;
       
   100 	}
       
   101 
       
   102 inline const RArray<TInt>&  CApplication::GetDeviceSupportedLanguages(void)
       
   103 	{
       
   104 	return iDeviceSupportedLanguages;
       
   105 	}
       
   106 } // namespace Swi