localisation/apparchitecture/apgrfx/APGCTL.CPP
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 #include <e32uid.h>
    16 #include <e32uid.h>
       
    17 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    18 #if !defined(__APGCTL_LIST_H__)
       
    19 #include "apgctllist.h"
       
    20 #endif
       
    21 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    17 #include "APGCTL.H"
    22 #include "APGCTL.H"
    18 #include "APGICNFL.H" 
    23 #include "APGICNFL.H" 
    19 #include "APGSTD.H" 
    24 #include "APGSTD.H" 
    20 #include "APFDEF.H"
    25 #include "APFDEF.H"
    21 #include "../apparc/TRACE.H"
    26 #include "../apparc/TRACE.H"
    22 #include "APGCLI.H"
    27 #include "APGCLI.H"
    23 #include "APACMDLN.H"
    28 #include "APACMDLN.H"
    24 
    29 
    25 ///////////////////////////////////////////
    30 //
    26 // CApaSystemControl
    31 // CApaSystemControl
    27 ///////////////////////////////////////////
    32 //
    28 
    33 
    29 CApaSystemControl* CApaSystemControl::NewL(RFs& aFs,const TDesC& aFullPath,const TUidType aUidType)
    34 CApaSystemControl* CApaSystemControl::NewL(RFs& aFs,const TDesC& aFullPath,const TUidType aUidType)
    30 	{
    35 	{
    31 	CApaSystemControl* self=new(ELeave) CApaSystemControl(aFs);
    36 	CApaSystemControl* self=new(ELeave) CApaSystemControl(aFs);
    32 	CleanupStack::PushL(self);
    37 	CleanupStack::PushL(self);
   155 		return *iShortCaption;
   160 		return *iShortCaption;
   156 	else
   161 	else
   157 		return *iCaption;
   162 		return *iCaption;
   158 	}
   163 	}
   159 
   164 
   160 ///////////////////////////////////////////
   165 //
   161 // CApaSystemControlList
   166 // CApaSystemControlList
   162 ///////////////////////////////////////////
   167 //
   163 
   168 
   164 EXPORT_C CApaSystemControlList* CApaSystemControlList::NewL(RFs& aFs)
   169 EXPORT_C CApaSystemControlList* CApaSystemControlList::NewL(RFs& aFs)
   165 /** Allocates and constructs a control panel application list. After construction, 
   170 /** Allocates and constructs a control panel application list. After construction, 
   166 it calls UpdateL(), to initialise the list.
   171 it calls UpdateL(), to initialise the list.
   167 
   172 
   248 
   253 
   249 
   254 
   250 EXPORT_C CApaSystemControl* CApaSystemControlList::Control(TUid aType)const
   255 EXPORT_C CApaSystemControl* CApaSystemControlList::Control(TUid aType)const
   251 /** Gets the control panel application in the list with the specified UID. 
   256 /** Gets the control panel application in the list with the specified UID. 
   252 
   257 
   253 @param aType The control panel application's third UID. 
   258 @param aType The control panel applications third UID. 
   254 @return The control panel application whose type matches aType, or null 
   259 @return The control panel application whose type matches aType, or null 
   255 if none match. */
   260 if none match. */
   256 
   261 
   257 	{
   262 	{
   258 	CApaSystemControl* control=iControl;
   263 	CApaSystemControl* control=iControl;
   396 	}
   401 	}
   397 
   402 
   398 CApaSystemControlList::CApaSystemControlList(RFs& aFs):iFs(aFs)
   403 CApaSystemControlList::CApaSystemControlList(RFs& aFs):iFs(aFs)
   399 	{
   404 	{
   400 	}
   405 	}
       
   406