50 #include <glxthumbnail.h> |
50 #include <glxthumbnail.h> |
51 #include <glxsettingsmodel.h> |
51 #include <glxsettingsmodel.h> |
52 #include <glxsingletonstore.h> |
52 #include <glxsingletonstore.h> |
53 #include <glxtexturemanager.h> |
53 #include <glxtexturemanager.h> |
54 #include <glxtracer.h> |
54 #include <glxtracer.h> |
|
55 |
|
56 #include <e32property.h> |
|
57 |
|
58 //Publish-Subscribe from Thumbnail manager |
|
59 const TUid KTAGDPSNotification = { 0x2001FD51 }; //PS category |
|
60 const TInt KForceBackgroundGeneration = 0x00000010; //PS Key |
|
61 const TInt KItemsleft = 0x00000008; //PS key value |
|
62 |
|
63 |
55 //Hg |
64 //Hg |
56 //#include <hg/hgcontextutility.h> |
65 //#include <hg/hgcontextutility.h> |
57 |
66 |
58 // TV size constants |
67 // TV size constants |
59 using namespace glxTvOut; |
68 using namespace glxTvOut; |
713 } |
722 } |
714 FeatureManager::UnInitializeLib(); |
723 FeatureManager::UnInitializeLib(); |
715 return ret; |
724 return ret; |
716 } |
725 } |
717 |
726 |
718 |
727 // ----------------------------------------------------------------------------- |
|
728 // StartTNMDaemonL |
|
729 // ----------------------------------------------------------------------------- |
|
730 // |
|
731 EXPORT_C void CGlxUiUtility::StartTNMDaemonL() |
|
732 { |
|
733 TRACER("CGlxUiUtility::StartTNMDaemonL"); |
|
734 TInt err = RProperty::Set(KTAGDPSNotification, KForceBackgroundGeneration, ETrue); |
|
735 if(err != KErrNone) |
|
736 { |
|
737 GLX_LOG_INFO1("GetItemsLeftCountL: RProperty::Set errorcode %d",err); |
|
738 //need to check what to do in fail cases |
|
739 User::Leave(err); |
|
740 } |
|
741 } |
|
742 |
|
743 // ----------------------------------------------------------------------------- |
|
744 // StopTNMDaemonL |
|
745 // ----------------------------------------------------------------------------- |
|
746 // |
|
747 EXPORT_C void CGlxUiUtility::StopTNMDaemonL() |
|
748 { |
|
749 TRACER("CGlxUiUtility:: StopTNMDaemonL "); |
|
750 TInt err = RProperty::Set(KTAGDPSNotification, KForceBackgroundGeneration, EFalse); |
|
751 GLX_LOG_INFO1("CGlxUiUtility::StopTNMDaemonL err = %d",err); |
|
752 if(err != KErrNone) |
|
753 { |
|
754 GLX_LOG_INFO1("StopTNMDaemonL: RProperty::Set errorcode %d",err); |
|
755 //need to check what to do in fail cases |
|
756 User::Leave(err); |
|
757 } |
|
758 } |
|
759 |
|
760 // ----------------------------------------------------------------------------- |
|
761 // GetItemsLeftCountL |
|
762 // ----------------------------------------------------------------------------- |
|
763 // |
|
764 EXPORT_C TInt CGlxUiUtility::GetItemsLeftCountL() |
|
765 { |
|
766 TRACER("CGlxUiUtility::GetItemsLeftCountL"); |
|
767 TInt leftVariable = 0; |
|
768 TInt err = RProperty::Get(KTAGDPSNotification, KItemsleft, leftVariable); |
|
769 GLX_LOG_INFO1("GetItemsLeftCountL: GetItemsLeftCountL %d",leftVariable); |
|
770 if(err != KErrNone) |
|
771 { |
|
772 GLX_LOG_INFO1("GetItemsLeftCountL: RProperty::Get errorcode %d",err); |
|
773 User::Leave(err); |
|
774 } |
|
775 return leftVariable; |
|
776 } |
719 // End of file |
777 // End of file |