--- a/realtimenetprots/sipfw/ProfileAgent/IMS_Agent/Src/sipprofilesimauthorization.cpp Wed Apr 14 16:19:40 2010 +0300
+++ b/realtimenetprots/sipfw/ProfileAgent/IMS_Agent/Src/sipprofilesimauthorization.cpp Tue Apr 27 17:00:49 2010 +0300
@@ -61,8 +61,12 @@
//
CSIPProfileSIMAuthorization::~CSIPProfileSIMAuthorization()
{
+ PROFILE_DEBUG1("CSIPProfileSIMAuthorization::~CSIPProfileSIMAuthorization")
+
Cancel();
iIMSI.Zero();
+
+ PROFILE_DEBUG1("CSIPProfileSIMAuthorization::~CSIPProfileSIMAuthorization, exit")
}
// ----------------------------------------------------------------------------
@@ -71,6 +75,9 @@
//
void CSIPProfileSIMAuthorization::ConstructL()
{
+ PROFILE_DEBUG1("CSIPProfileSIMAuthorization::ConstructL")
+
+ iSIMAuthorizationNotSupported = EFalse;
TUint32 caps(0);
User::LeaveIfError(iPhone.GetIdentityCaps(caps));
if(!(caps & RMobilePhone::KCapsGetSubscriberId))
@@ -78,6 +85,8 @@
User::Leave(KErrNotSupported);
}
CActiveScheduler::Add( this );
+
+ PROFILE_DEBUG1("CSIPProfileSIMAuthorization::ConstructL, exit")
}
// ----------------------------------------------------------------------------
@@ -108,14 +117,19 @@
//
void CSIPProfileSIMAuthorization::RunL()
{
+ PROFILE_DEBUG3("CSIPProfileSIMAuthorization::RunL, status:", iStatus.Int() )
+
if ( iStatus.Int() == KErrNone)
{
iObserver.AuthorizedSubscriberIdL();
}
else
- {
+ {
+ iSIMAuthorizationNotSupported = ETrue;
User::LeaveIfError(iStatus.Int());
}
+
+ PROFILE_DEBUG1("CSIPProfileSIMAuthorization::RunL, exit")
}
// ----------------------------------------------------------------------------
@@ -131,7 +145,25 @@
}
return KErrNone;
}
-
+
+// ----------------------------------------------------------------------------
+// CSIPProfileSIMAuthorization::IsImsAuthorizationSupported
+// ----------------------------------------------------------------------------
+//
+TBool CSIPProfileSIMAuthorization::IsSIMAuthorizationAllowed()
+ {
+ return !iSIMAuthorizationNotSupported;
+ }
+
+// ----------------------------------------------------------------------------
+// CSIPProfileSIMAuthorization::ResetSIMAuthorizationAllowed
+// ----------------------------------------------------------------------------
+//
+void CSIPProfileSIMAuthorization::ResetSIMAuthorizationAllowed(TBool aStatus)
+ {
+ iSIMAuthorizationNotSupported = aStatus;
+ }
+
// ----------------------------------------------------------------------------
// CSIPProfileSIMAuthorization::DoCancel
// ----------------------------------------------------------------------------