williamr@2: /* williamr@2: * Copyright (c) 2003-2005 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Contains common resource declarations for the AIWFW. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: // INCLUDES williamr@4: #include williamr@2: williamr@2: // MACROS williamr@2: williamr@2: // STRUCTURE DEFINITIONS williamr@2: williamr@2: // ----------------------------------------------------------------------------- williamr@2: // Option item for a criteria. williamr@2: // ----------------------------------------------------------------------------- williamr@2: STRUCT AIW_CRITERIA_OPTION williamr@2: { williamr@2: } williamr@2: williamr@2: // ----------------------------------------------------------------------------- williamr@2: // Criteria item. williamr@2: // Resource structure to define criteria item consumer. williamr@2: // ----------------------------------------------------------------------------- williamr@2: // williamr@2: // Criteria item williamr@2: // williamr@2: STRUCT AIW_CRITERIA_ITEM williamr@2: { williamr@2: // Criteria ID to be used in UI elements referring to this criteria williamr@2: // By default the ID should be same as the serviceCmd, but it can be williamr@2: // different as well e.g. for mapping old menu items to use AIW williamr@2: // This can be consumer defined or predefined, if common interest williamr@2: // is allocated. williamr@2: LONG id; williamr@2: williamr@2: // -------------------------------------------------------------- williamr@2: // Actual criteria data used when resolving providers from which williamr@2: // a consumer is interested in. williamr@2: // -------------------------------------------------------------- williamr@2: williamr@2: // Command ID for service command, mandatory. williamr@2: LONG serviceCmd = KAiwCmdNone; williamr@2: williamr@2: // Content MIME type, event type or any agreed one. williamr@2: LTEXT8 contentType = ""; williamr@2: williamr@2: // Services class tells what kind of service is expected from williamr@2: // provider. See TAiwServiceClass enum for allowed values. williamr@2: // Optional, if not defined the default (KAiwClassMenu) is used. williamr@2: LONG serviceClass = KAiwClassMenu; williamr@2: williamr@2: // -------------------------------------------------------------- williamr@2: // Additional options, if any. williamr@2: // -------------------------------------------------------------- williamr@2: williamr@2: // Defines UID for default provider. If provider for this williamr@2: // UID exists, all the setup calls will be forwarded to it williamr@2: // first (eg. if default provider implements 'menu' service class, it will williamr@2: // be the first provider to insert its menu items to the consumer menu). williamr@2: LONG defaultProvider = 0; williamr@2: williamr@2: // The maximum number of providers allowed for the criteria item. williamr@2: // There might be cases to limit the number of providers, e.g. for williamr@2: // limiting the number of menu items. Maximum is 255 providers per interest. williamr@2: BYTE maxProviders = 0xff; williamr@2: williamr@2: // Other options bits (8 bits reserved). williamr@2: BYTE loadOptions=0; williamr@2: williamr@2: // Reserved for extensions. williamr@2: LLINK reserved = 0; williamr@2: } williamr@2: williamr@2: // williamr@2: // Interest is an array of criteria items. williamr@2: // williamr@2: STRUCT AIW_INTEREST williamr@2: { williamr@2: STRUCT items[]; // AIW_CRITERIA_ITEM's williamr@2: } williamr@2: williamr@2: williamr@2: // End of File