examples/ForumNokia/EComCalculator/plugin/data/101F5465.rss

00001 /*
00002  * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
00003  *    
00004  * Redistribution and use in source and binary forms, with or without
00005  * modification, are permitted provided that the following conditions are met:
00006  *    
00007  *  * Redistributions of source code must retain the above copyright notice, this
00008  *    list of conditions and the following disclaimer.
00009  *  * Redistributions in binary form must reproduce the above copyright notice,
00010  *    this list of conditions and the following disclaimer in the documentation
00011  *    and/or other materials provided with the distribution.
00012  *  * Neither the name of Nokia Corporation nor the names of its contributors
00013  *    may be used to endorse or promote products derived from this software
00014  *    without specific prior written permission.
00015  *    
00016  *    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00017  *    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00018  *    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019  *    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00020  *    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00021  *    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00022  *    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00023  *    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00024  *    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00025  *    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  *    
00027  *    Description:  
00028  */
00029  
00030 // 101F5465.RSS. The name should be same as the UID of the plugin dll
00031 //               in 2nd edition, 
00032 //               see EComImplementation_2x.mmp
00033 //
00034 // Registry file for the CCalculationInterfaceDefinition implementation 
00035 // collection. Gives description of implementations so that framework can 
00036 // search and list them.
00037 //
00038 // Notes for resolution:
00039 //       When client asks ECOM framework to find implementation for specific 
00040 //       interface (typically in interface's NewL method), the framework uses 
00041 //       resolver to compare the given TEComResolverParams data to 
00042 //           IMPLEMENTATION_INFO::default_data below.
00043 //       For example, in the client code there could be 
00044 //
00045 //         TEComResolverParams resolverParams;
00046 //         resolverParams.SetDataType(_L("sum"));
00047 //         TAny* ptr = REComSession::CreateImplementationL(
00048 //             KCalculateInterfaceDefinitionUid,    // interface definition 
00049 //                                                  // UID = 0x10009DC1
00050 //             _FOFF(CCalculationInterfaceDefinition,iDtor_ID_Key), 
00051 //             resolverParams);
00052 //
00053 //       The framework will use default resolver (because custom resolver id 
00054 //       is not specified), and compare the "sum" to default_data fields in 
00055 //       this resource file. The resolver find the implementation with ID 
00056 //       0x10009DC7 and returns CImplementationClassPlus instance (mapping of 
00057 //       IDs to implementations is done in proxy.cpp)
00058 
00059 #include "RegistryInfo.rh"
00060 
00061 // Declares info for two implementations
00062 RESOURCE REGISTRY_INFO theInfo
00063     {
00064     // UID for the DLL. See mmp files
00065     //__SERIES60_3X__ can't be used in resource files
00066     #ifdef EKA2   
00067         dll_uid = 0xE01F5465;
00068     #else
00069         dll_uid = 0x101F5465;
00070     #endif
00071     // Declare array of interface info. This dll contains implementations for 
00072     // only one interface (CCalculationInterfaceDefinition).
00073     interfaces = 
00074         {
00075         INTERFACE_INFO
00076             {
00077             // UID of interface that is implemented
00078             #ifdef EKA2
00079                 interface_uid = 0xE0009DC1;
00080             #else
00081                 interface_uid = 0x10009DC1;
00082             #endif
00083 
00084             implementations = 
00085                 {
00086                 IMPLEMENTATION_INFO
00087                     {
00088                     #ifdef EKA2
00089                         implementation_uid = 0xE0009DC7;
00090                     #else
00091                         implementation_uid = 0x10009DC7;
00092                     #endif
00093                     version_no = 1;
00094                     display_name = "Plus implementation";
00095                     default_data = "sum";
00096                     opaque_data = "";
00097                     },
00098                 IMPLEMENTATION_INFO
00099                     {
00100                     #ifdef EKA2
00101                         implementation_uid = 0xE0009DC8;
00102                     #else
00103                         implementation_uid = 0x10009DC8;
00104                     #endif
00105                     
00106                     version_no = 1;
00107                     display_name = "Multiply implementation";
00108                     default_data = "multiply"; // in resolution phase this 
00109                                                // relates to 
00110                                                // TEComResolverParams::DataType();
00111                     opaque_data = "";
00112                     }
00113                 };
00114             }
00115         };
00116     }

Generated by  doxygen 1.6.2