javacommons/security/src.s60/telutils.cpp
changeset 61 bf7ee68962da
parent 47 f40128debb5d
child 83 26b2b12093af
equal deleted inserted replaced
48:e0d6e9bd3ca7 61:bf7ee68962da
    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;
    77 }
    90 }
    78 
    91 
    79 void TelUtils::ConstructL()
    92 void TelUtils::ConstructL()
    80 {
    93 {
    81     RMobilePhone::TMobilePhoneIdentityV1        phoneId;
    94     RMobilePhone::TMobilePhoneIdentityV1        phoneId;