#include <FShellAppWidgetProviderManager.h>
#include <FShellAppWidgetFrame.h>
#include <FShellAppWidgetPopup.h>
-#include <FShellIAppWidgetAddRequestListener.h>
+#include <FShellIAppWidgetRequestListener.h>
#include <FShellShortcutManager.h>
#include <FShellIShortcutRequestListener.h>
#include <FShellLockManager.h>
{
class AppWidgetProviderInfo;
-class IAppWidgetAddRequestListener;
+class IAppWidgetRequestListener;
/**
* @class AppWidgetManager
- * @brief Manages static information of all the AppWidgetes and provides APIs for AppWidget viewer(Such as the Home screen).
+ * @brief Manages static information of all the AppWidgets and provides APIs for AppWidget viewer(Such as the Home screen).
*
* @since 2.1
*
* @final This class is not intended for extension.
*
- * The %AppWidgetManager class manages static information of all the AppWidgetes and deliveries request to add AppWidget.
+ * The %AppWidgetManager class manages static information of all the AppWidgets and deliveries request to add AppWidget.
*/
class _OSP_EXPORT_ AppWidgetManager
: public Tizen::Base::Object
* @exception E_SUCCESS The method is successful.
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*
- * @see IAppWidgetAddRequestListener
+ * @see IAppWidgetRequestListener
* @remarks Platform does not have the ownership of this pointer, So caller should manage the listener object properly.
*/
- result SetAppWidgetAddRequestListener(IAppWidgetAddRequestListener* pListener);
+ result SetAppWidgetRequestListener(IAppWidgetRequestListener* pListener);
private:
//
* @exception E_SYSTEM The method cannot proceed due to a severe system error.
*
* @remarks Only AppWidget provider that is packaged with the caller application can be added by this API.
- * @see SetAppWidgetAddRequestListener
+ * @see SetAppWidgetRequestListener
*/
result AddAppWidget(const Tizen::App::AppId& providerAppId, const Tizen::Base::String& providerName, const Tizen::Base::String& alternateText, const Tizen::Base::String& userInfo);
*
* @since 2.1
*/
- virtual ~IAppWidgetPopupProviderFactory() {};
+ virtual ~IAppWidgetPopupProviderFactory(void) {};
/**
* Creates a AppWidgetPopupProvider instance@n
*
* @since 2.1
*/
- virtual ~IAppWidgetProviderFactory() {};
+ virtual ~IAppWidgetProviderFactory(void) {};
/**
* Called when the AppWidgetProvider creation request is received from the appwidget service. @n
//
/**
- * @file FShellIAppWidgetAddRequestListener.h
- * @brief This is the header file for the %IAppWidgetAddRequestListener interface.
+ * @file FShellIAppWidgetRequestListener.h
+ * @brief This is the header file for the %IAppWidgetRequestListener interface.
*
- * This header file contains the declarations of the %IAppWidgetAddRequestListener interface.
+ * This header file contains the declarations of the %IAppWidgetRequestListener interface.
*/
#ifndef _FSHELL_IAPPWIDGET_ADD_REQUEST_LISTENER_H_
{
/**
- * @interface IAppWidgetAddRequestListener
- * @brief This interface defines a listener for a AppWidget viewer(eg, Home screen, Lock screen) that receives request to add AppWidget
+ * @interface IAppWidgetRequestListener
+ * @brief This interface defines a listener for a AppWidget viewer(eg, Home screen) that receives request to add AppWidget
*
* @since 2.1
*
- * The %IAppWidgetAddRequestListener interface defines a listener for a AppWidget viewer(eg, Home screen, Lock screen) that receives request to add AppWidget
+ * The %IAppWidgetRequestListener interface defines a listener for a AppWidget viewer(eg, Home screen) that receives request to add AppWidget
*/
-class _OSP_EXPORT_ IAppWidgetAddRequestListener
+class _OSP_EXPORT_ IAppWidgetRequestListener
: virtual public Tizen::Base::Runtime::IEventListener
{
public:
*
* @since 2.1
*/
- virtual ~IAppWidgetAddRequestListener() {}
+ virtual ~IAppWidgetRequestListener(void) {}
/**
* Called when requested to add a AppWidget @n
/**
* Unlocks current lock screen.
- * @privlevel partner
+ * @privlevel platform
* @privilege http://tizen.org/privilege/lockmanager
*
* @since 2.1
#include <FShellAppWidgetManager.h>
#include <FShellAppWidgetProviderInfo.h>
-#include <FShellIAppWidgetAddRequestListener.h>
+#include <FShellIAppWidgetRequestListener.h>
#include "FShell_AppWidgetManagerImpl.h"
using namespace std;
}
result
-AppWidgetManager::SetAppWidgetAddRequestListener(IAppWidgetAddRequestListener* pListener)
+AppWidgetManager::SetAppWidgetRequestListener(IAppWidgetRequestListener* pListener)
{
- return __pAppWidgetManagerImpl->SetAppWidgetAddRequestListener(pListener);
+ return __pAppWidgetManagerImpl->SetAppWidgetRequestListener(pListener);
}
#include <FShellAppWidgetFrame.h>
#include <FShellAppWidgetPopup.h>
-#include <FShellIAppWidgetAddRequestListener.h>
+#include <FShellIAppWidgetRequestListener.h>
#include <FShellIAppWidgetProviderFactory.h>
#include <FShellIAppWidgetPopupProviderFactory.h>
String providerName;
_AppWidgetManagerImpl::ExtractAppIdAndProviderName(providerId, appId, providerName);
- IAppWidgetAddRequestListener* pListener = _AppWidgetManagerImpl::GetInstance()->GetAddRequestListener();
+ IAppWidgetRequestListener* pListener = _AppWidgetManagerImpl::GetInstance()->GetAddRequestListener();
SysTryReturn(NID_APP, pAppWidgetManager, 0, E_SYSTEM, "[E_SYSTEM] pListener is null!");
pListener->OnAppWidgetAddRequested(appId, providerName, text, content_info);
return 0;
}
result
-_AppWidgetManagerImpl::SetAppWidgetAddRequestListener(IAppWidgetAddRequestListener* pListener)
+_AppWidgetManagerImpl::SetAppWidgetRequestListener(IAppWidgetRequestListener* pListener)
{
// int ret = shortcut_set_request_cb(AppWidgetRequestHandlerCallback, this );
// SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM, "failed to shortcut_set_request_cb (%d)", ret);
return E_SUCCESS;
}
-IAppWidgetAddRequestListener*
+IAppWidgetRequestListener*
_AppWidgetManagerImpl::GetAddRequestListener()
{
return __pAppWidgetRequestEventListener;
const char APPWIDGET_POPUP_ON_CREATE[] = "http://tizen.org/appcontrol/appwidgetpopup/create";
const char APPWIDGET_POPUP_ON_DESTROY[] = "http://tizen.org/appcontrol/appwidgetpopup/destroy";
const char APPWIDGET_POPUP_ON_TOUCH[] = "http://tizen.org/appcontrol/appwidgetpopup/touch";
+const char APPWIDGET_POPUP_PREFIX[] = "http://tizen.org/appcontrol/appwidgetpopup";
const String ARG_KEY_INSTANCE_ID = L"_InstanceId";
const String ARG_KEY_PROVIDER_NAME = L"_ProviderName";
,__pAppWidgetPopupProviderFactory(null)
,__pAppWidgetPopupProvider(null)
,__AppWidgetPopupTouchEventListener(null)
-// ,__messageReceived(false)
{
SysLog(NID_APP, "");
}
SysLog(NID_APP, "id(%ls), name(%ls), param(%ls)", pInstanceId->GetPointer(), pName->GetPointer(), pParam->GetPointer());
- if(operationId.StartsWith(L"http://tizen.org/appcontrol/appwidgetpopup", 0) == true)
+ if(operationId.StartsWith(APPWIDGET_POPUP_PREFIX, 0) == true)
{
SysTryReturnVoidResult(NID_APP, __pAppWidgetPopupProviderFactory, E_FAILURE, "[E_FAILURE] __pAppWidgetPopupProviderFactory is null");
HandleAppWidgetPopupRequest(operationId, pArgs);
Tizen::Base::Collection::IList* GetAppWidgetProviderInfoListN();
AppWidgetProviderInfo* GetAppWidgetProviderInfoN(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName);
AppWidgetProviderInfo* GetDefaultAppWidgetProviderInfoN(const Tizen::App::PackageId& packageId);
- result SetAppWidgetAddRequestListener(IAppWidgetAddRequestListener* pListener);
+ result SetAppWidgetRequestListener(IAppWidgetRequestListener* pListener);
// internal
- IAppWidgetAddRequestListener* GetAddRequestListener();
+ IAppWidgetRequestListener* GetAddRequestListener();
static bool IsAppWidgetProviderDefault(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName);// temp
// helper
result Construct();
private:
- IAppWidgetAddRequestListener* __pAppWidgetRequestEventListener;
+ IAppWidgetRequestListener* __pAppWidgetRequestEventListener;
};