1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/eikfctry.h Wed Mar 31 12:27:01 2010 +0100
1.3 @@ -0,0 +1,70 @@
1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __EIKFCTRY_H__
1.20 +#define __EIKFCTRY_H__
1.21 +
1.22 +#include <e32def.h>
1.23 +
1.24 +class CCoeControl;
1.25 +
1.26 +/** Flags to determine the control status.
1.27 +
1.28 +@publishedPartner
1.29 +@released
1.30 +*/
1.31 +enum
1.32 + {
1.33 + /** Flag to determine whether a control has ears. Ears are triangular buttons
1.34 + for moving forwards or backwards through the list. */
1.35 + EEikControlHasEars=0x01,
1.36 + /** Flag to determine whether the control is unable to receive keyboard focus. */
1.37 + EEikControlIsNonFocusing=0x02,
1.38 + /** Flag to determine whether the control is higher than a normal control. */
1.39 + EEikControlHasExtraAscent=0x04,
1.40 + /** Flag to determine if a control should be placed directly
1.41 + in the view/dialog or if it should be placed in a pop-out control. */
1.42 + EEikControlIsNonEditInPlace=0x08
1.43 + };
1.44 +
1.45 +/** Structure to hold the control specific information. It is used by
1.46 +EikControlFactory.
1.47 +
1.48 +@see EikControlFactory
1.49 +@publishedAll
1.50 +@released
1.51 +*/
1.52 +struct SEikControlInfo
1.53 + {
1.54 + CCoeControl* iControl;
1.55 + TInt iTrailerTextId;
1.56 + TInt iFlags;
1.57 + };
1.58 +
1.59 +
1.60 +/** Abstract factory that creates controls by type.
1.61 +
1.62 +This class provides a unified way to create controls according to the
1.63 +specified control integer ID.
1.64 +
1.65 +@publishedAll
1.66 +@released */
1.67 +class EikControlFactory
1.68 + {
1.69 +public:
1.70 + IMPORT_C static SEikControlInfo CreateByTypeL(TInt aControlType);
1.71 + };
1.72 +
1.73 +#endif // __EIKFCTRY_H__