javacommons/security/src.s60/telutils.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 60 6c158198356e
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
    72     }
    72     }
    73     TTimeIntervalSeconds sec;
    73     TTimeIntervalSeconds sec;
    74     TTime baseTime(MAKE_TINT64(0x00dcddb3 ,0x0f2f8000)); // 1st Jan 1970
    74     TTime baseTime(MAKE_TINT64(0x00dcddb3 ,0x0f2f8000)); // 1st Jan 1970
    75     t.SecondsFrom(baseTime, sec);
    75     t.SecondsFrom(baseTime, sec);
    76     return sec.Int();
    76     return sec.Int();
    77 }
       
    78 
       
    79 /**
       
    80  * Return 0 if secure time has not been set
       
    81  */
       
    82 int TelUtils::isSecureTimeSet()
       
    83 {
       
    84     TTime t;
       
    85     if (KErrNoSecureTime == t.UniversalTimeSecure())
       
    86     {
       
    87         return 0;
       
    88     }
       
    89     return 1;
       
    90 }
    77 }
    91 
    78 
    92 void TelUtils::ConstructL()
    79 void TelUtils::ConstructL()
    93 {
    80 {
    94     RMobilePhone::TMobilePhoneIdentityV1        phoneId;
    81     RMobilePhone::TMobilePhoneIdentityV1        phoneId;