commsfwtools/preparedefaultcommsdatabase/src/CommsDatMapperAndValidatorUtils.h
branchRCL_3
changeset 12 8b5d60ce1e94
parent 0 dfb7c4ff071f
equal deleted inserted replaced
11:98a7181d2ce7 12:8b5d60ce1e94
    27 #ifndef COMMSDATMAPPERANDVALIDATORUTILS_H
    27 #ifndef COMMSDATMAPPERANDVALIDATORUTILS_H
    28 #define COMMSDATMAPPERANDVALIDATORUTILS_H
    28 #define COMMSDATMAPPERANDVALIDATORUTILS_H
    29 
    29 
    30 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
    30 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
    31 
    31 
       
    32 #include <metadatabase.h>
    32 #include <cdbcols.h>
    33 #include <cdbcols.h>
    33 #include <in_sock.h> //KAfInet
    34 #include <in_sock.h> //KAfInet
    34 //forward declarations
    35 //forward declarations
    35 namespace CommsDat
    36 namespace CommsDat
    36     {
    37     {
   125 
   126 
   126     static TBool IsIPProtoAPAlreadyExistL(TInt aLinkLevelTagId, CommsDat::CMDBSession& aSession);
   127     static TBool IsIPProtoAPAlreadyExistL(TInt aLinkLevelTagId, CommsDat::CMDBSession& aSession);
   127     
   128     
   128     static TBool IsIPProtoAPAlreadyExistL(TInt aLinkLevelTagId, TInt aConnPrefElementId, CommsDat::CMDBSession& aSession);
   129     static TBool IsIPProtoAPAlreadyExistL(TInt aLinkLevelTagId, TInt aConnPrefElementId, CommsDat::CMDBSession& aSession);
   129     
   130     
   130     static CommsDat::CCDAccessPointRecord* LoadTheAPL(TInt aLinkLevelTagId, CommsDat::CMDBSession& aSession);
   131     static inline CommsDat::CCDAccessPointRecord* LoadIPProtoAccessPointL(TInt aLinkLevelTagId, CommsDat::CMDBSession& aSession);
       
   132     static CommsDat::CCDAccessPointRecord* LoadIPProtoAccessPoint(TInt aLinkLevelTagId, CommsDat::CMDBSession& aSession);
   131     
   133     
   132     static TInt CountReferenceToThisIPProtoAPL(TUint aElementId, CommsDat::CMDBSession& aSession);
   134     static TInt CountReferenceToThisIPProtoAPL(TUint aElementId, CommsDat::CMDBSession& aSession);
   133     
   135     
   134     static TInt CountReferenceToThisIPProtoAPL(TUint aElementId, 
   136     static TInt CountReferenceToThisIPProtoAPL(TUint aElementId, 
   135     										   CommsDat::CCDAPPrioritySelectionPolicyRecord* aTheAlreadyDeletedRecord,
   137     										   CommsDat::CCDAPPrioritySelectionPolicyRecord* aTheAlreadyDeletedRecord,
   149     CommsDatMapperAndValidator();
   151     CommsDatMapperAndValidator();
   150     CommsDatMapperAndValidator(const CommsDatMapperAndValidator&);
   152     CommsDatMapperAndValidator(const CommsDatMapperAndValidator&);
   151     CommsDatMapperAndValidator& operator=(const CommsDatMapperAndValidator&);
   153     CommsDatMapperAndValidator& operator=(const CommsDatMapperAndValidator&);
   152     
   154     
   153     static void CheckTheAPPrioritySelPolFromConnPrefModL(CommsDat::CCDAPPrioritySelectionPolicyRecord*& aAPSelPolRec);
   155     static void CheckTheAPPrioritySelPolFromConnPrefModL(CommsDat::CCDAPPrioritySelectionPolicyRecord*& aAPSelPolRec);
       
   156     static TBool FindIPProtoAccessPointRecordL(CommsDat::CCDAccessPointRecord& aAccessPoints, CommsDat::CMDBSession& aSession);
   154     
   157     
   155     }; //CommsDatMapperAndValidator
   158     }; //CommsDatMapperAndValidator
   156     
   159     
       
   160 inline CommsDat::CCDAccessPointRecord* CommsDatMapperAndValidator::LoadIPProtoAccessPointL(TInt aLinkLevelTagId, CommsDat::CMDBSession& aSession)
       
   161     {
       
   162     CommsDat::CCDAccessPointRecord* ap = LoadIPProtoAccessPoint(aLinkLevelTagId, aSession);
       
   163     if (!ap)
       
   164         {
       
   165         User::Leave(KErrNotFound);
       
   166         }
       
   167     return ap;
       
   168     }
       
   169 
   157 } //end of namespace CommsDatInternal
   170 } //end of namespace CommsDatInternal
   158 
   171 
   159 #endif //SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
   172 #endif //SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
   160 
   173 
   161 #endif //COMMSDATMAPPERANDVALIDATORUTILS_H
   174 #endif //COMMSDATMAPPERANDVALIDATORUTILS_H
       
   175