00001 /* 00002 * ============================================================================ 00003 * Name : cmdefconnvalues.h 00004 * Part of : Networking Utilities / Connection Method Manager 00005 * Description : Declaration of default connection values 00006 * Version : %version: 1 % 00007 * 00008 * Copyright © 2006 Nokia. All rights reserved. 00009 * This material, including documentation and any related computer 00010 * programs, is protected by copyright controlled by Nokia. All 00011 * rights are reserved. Copying, including reproducing, storing, 00012 * adapting or translating, any or all of this material requires the 00013 * prior written consent of Nokia. This material also contains 00014 * confidential information which may not be disclosed to others 00015 * without the prior written consent of Nokia. 00016 * ============================================================================ 00017 */ 00018 #ifndef C_CMDEFCONNVALUES_H 00019 #define C_CMDEFCONNVALUES_H 00020 00021 enum TCmDefConnType 00022 { 00023 ECmDefConnAlwaysAsk, 00026 ECmDefConnAskOnce, 00029 ECmDefConnDestination, 00032 ECmDefConnConnectionMethod, 00035 }; 00036 00037 struct TCmDefConnValue 00038 { 00042 TCmDefConnType iType; 00043 00047 TUint iId; 00048 // ----------------------------------------------------------------------------- 00049 // TCmDefConnValue::operator== 00050 // ----------------------------------------------------------------------------- 00051 // 00052 inline TBool TCmDefConnValue::operator==( TCmDefConnValue& aDCSettingSelection ) const 00053 { 00054 return ( (iType == aDCSettingSelection.iType) && ( iId == aDCSettingSelection.iId ) ); 00055 }; 00056 00057 // ----------------------------------------------------------------------------- 00058 // TCmDefConnValue::operator!= 00059 // ----------------------------------------------------------------------------- 00060 // 00061 inline TBool TCmDefConnValue::operator!=( TCmDefConnValue& aDCSettingSelection ) const 00062 { 00063 return (!( (iType == aDCSettingSelection.iType) && ( iId == aDCSettingSelection.iId ) )); 00064 }; 00065 }; 00066 // C_CMDEFCONNVALUES_H 00067 #endif