equal
deleted
inserted
replaced
40 #include <featmgr.h> |
40 #include <featmgr.h> |
41 #include <bldvariant.hrh> // For feature constants |
41 #include <bldvariant.hrh> // For feature constants |
42 #include <eikenv.h> |
42 #include <eikenv.h> |
43 #include <eikappui.h> |
43 #include <eikappui.h> |
44 #include <aknclearer.h> |
44 #include <aknclearer.h> |
45 |
45 #include <avkondomainpskeys.h> // Keyguard Status |
46 // Internal incudes |
46 // Internal incudes |
47 #include <glxresolutionmanager.h> // for CGlxResolutionManager |
47 #include <glxresolutionmanager.h> // for CGlxResolutionManager |
48 #include <glxsingletonstore.h> |
48 #include <glxsingletonstore.h> |
49 #include <glxpanic.h> |
49 #include <glxpanic.h> |
50 #include <glxassert.h> // for GLX_ASSERT_DEBUG |
50 #include <glxassert.h> // for GLX_ASSERT_DEBUG |
825 // |
825 // |
826 EXPORT_C TInt CGlxUiUtility::GetItemsLeftCount() |
826 EXPORT_C TInt CGlxUiUtility::GetItemsLeftCount() |
827 { |
827 { |
828 TRACER("CGlxUiUtility::GetItemsLeftCount"); |
828 TRACER("CGlxUiUtility::GetItemsLeftCount"); |
829 TInt itemsLeftCount = 0; |
829 TInt itemsLeftCount = 0; |
830 TInt err = RProperty::Get(KTAGDPSNotification, KItemsleft, itemsLeftCount); |
830 TInt err = |
|
831 RProperty::Get(KTAGDPSNotification, KItemsleft, itemsLeftCount); |
831 GLX_LOG_INFO1("GetItemsLeftCount: GetItemsLeftCount %d", itemsLeftCount); |
832 GLX_LOG_INFO1("GetItemsLeftCount: GetItemsLeftCount %d", itemsLeftCount); |
832 |
833 |
833 // In case of error, enter in the next view. Don't block photos permanently. |
834 // In case of error, enter in the next view. Don't block photos permanently. |
834 // [Though this use case is very unlikely] |
835 // [Though this use case is very unlikely] |
835 if (err != KErrNone) |
836 if (err != KErrNone) |
839 } |
840 } |
840 |
841 |
841 // This case is added as per UI-Improvements. |
842 // This case is added as per UI-Improvements. |
842 // Use case: Take a pic. open photos from Menu (not "Goto photos") |
843 // Use case: Take a pic. open photos from Menu (not "Goto photos") |
843 // Progress bar SHOULD NOT be displayed. |
844 // Progress bar SHOULD NOT be displayed. |
844 if (itemsLeftCount <= KIgnoreItemsLeftCount) |
845 if ((itemsLeftCount != KErrNotReady) && (itemsLeftCount |
|
846 <= KIgnoreItemsLeftCount)) |
845 { |
847 { |
846 GLX_LOG_INFO("GetItemsLeftCount( < KIgnoreItemsLeftCount )"); |
848 GLX_LOG_INFO("GetItemsLeftCount( < KIgnoreItemsLeftCount )"); |
847 itemsLeftCount = 0; |
849 itemsLeftCount = 0; |
848 } |
850 } |
849 |
851 |
875 { |
877 { |
876 delete iClearer; |
878 delete iClearer; |
877 iClearer = NULL; |
879 iClearer = NULL; |
878 } |
880 } |
879 } |
881 } |
|
882 |
|
883 // ----------------------------------------------------------------------------- |
|
884 // SetTNMDaemonPSKeyvalue |
|
885 // ----------------------------------------------------------------------------- |
|
886 // |
|
887 EXPORT_C TInt CGlxUiUtility::SetTNMDaemonPSKeyvalue() |
|
888 { |
|
889 TRACER("CGlxUiUtility::SetTNMDaemonPSKeyvalue"); |
|
890 TInt ret = RProperty::Define(KTAGDPSNotification, KItemsleft, |
|
891 RProperty::EInt); |
|
892 GLX_LOG_INFO1("CGlxUiUtility::SetTNMDaemon()RProperty::Define %d", ret); |
|
893 if (ret == KErrNone) |
|
894 { |
|
895 ret = RProperty::Set(KTAGDPSNotification, KItemsleft, KErrNotReady); |
|
896 GLX_LOG_INFO1("CGlxUiUtility::SetTNMDaemon() RProperty::Set %d", ret); |
|
897 } |
|
898 return ret; |
|
899 } |
|
900 |
|
901 // ----------------------------------------------------------------------------- |
|
902 // GetKeyguardStatus |
|
903 // ----------------------------------------------------------------------------- |
|
904 // |
|
905 EXPORT_C TInt CGlxUiUtility::GetKeyguardStatus() |
|
906 { |
|
907 TRACER("CGlxUiUtility::GetKeyguardStatus"); |
|
908 TInt keyguardStatus = KErrNone; |
|
909 RProperty::Get(KPSUidAvkonDomain, KAknKeyguardStatus, keyguardStatus); |
|
910 GLX_LOG_INFO1("CGlxUiUtility::GetKeyguardStatus() keyguardStatus=%d", keyguardStatus); |
|
911 return keyguardStatus; |
|
912 } |
880 // End of file |
913 // End of file |