-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd9b8d1
commit 2517a5a
Showing
20 changed files
with
900 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
/* | ||
* If not stated otherwise in this file or this component's LICENSE file the | ||
* following copyright and licenses apply: | ||
* | ||
* Copyright 2020 RDK Management | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include "Module.h" | ||
|
||
namespace WPEFramework { | ||
namespace Exchange { | ||
|
||
// @json | ||
struct EXTERNAL IApplication : virtual public Core::IUnknown { | ||
|
||
enum { ID = ID_APPLICATION }; | ||
|
||
virtual ~IApplication() = default; | ||
|
||
/* @event */ | ||
struct EXTERNAL INotification : virtual public Core::IUnknown { | ||
enum { ID = ID_APPLICATION_NOTIFICATION }; | ||
|
||
virtual ~INotification() = default; | ||
|
||
/* @brief Application visibility changes */ | ||
/* @param hidden Denotes if application is currently hidden */ | ||
virtual void VisibilityChange(const bool hidden) = 0; | ||
}; | ||
|
||
enum resettype : uint8_t { | ||
FACTORY, | ||
CACHE, | ||
CREDENTIALS, | ||
RECORDINGS | ||
}; | ||
|
||
enum launchpointtype : uint8_t { | ||
UNDEFINED, | ||
DIAL, | ||
DEDICATED_BUTTON, | ||
DEDICATED_ICON, | ||
APPLICATION_LIST, | ||
INTEGRATED_TILE, | ||
SEARCH_RESULT, | ||
SEARCH_CONTINUATION, | ||
VOICE_CONTROL, | ||
VOICE_SEARCH_RESULT, | ||
VISUAL_GESTURE, | ||
TOUCH_GESTURE, | ||
EPG_GRID, | ||
CHANNEL_NUMBER, | ||
CHANNEL_ZAP, | ||
CHANNEL_BAR, | ||
WEB_BROWSER, | ||
POWER_ON, | ||
POWER_ON_FROM_DEDICATED_BUTTON, | ||
SUSPENDED_POWER_ON, | ||
RESTART, | ||
SUSPENDED_RESTART, | ||
RESUMED_FROM_SCREENSERVER, | ||
RESUMED_FROM_STANDBY, | ||
BANNER_AD, | ||
TITLE_RECOMENDATION, | ||
APPLICATION_PROMOTION | ||
}; | ||
|
||
virtual void Register(INotification* sink) = 0; | ||
virtual void Unregister(INotification* sink) = 0; | ||
|
||
// @brief Resets application data | ||
// @param type Type of reset to perform | ||
virtual uint32_t Reset(const resettype type) = 0; | ||
|
||
// @property | ||
// @brief Application-specific identification string | ||
// @param id Identifier string | ||
virtual uint32_t Identifier(string& id /* @out */) const = 0; | ||
|
||
// @property | ||
// @brief URI of the associated application-specific content | ||
// @param link Content URI (e.g. https://youtube.com) | ||
virtual uint32_t ContentLink(const string& link) = 0; | ||
|
||
// @property | ||
// @brief Application launching point | ||
virtual uint32_t LaunchPoint(launchpointtype& point /* @out */) const = 0; | ||
virtual uint32_t LaunchPoint(const launchpointtype&) = 0; | ||
|
||
// @property | ||
// @brief Current application visibility | ||
virtual uint32_t Visible(bool& visiblity /* @out */) const = 0; | ||
virtual uint32_t Visible(const bool&) = 0; | ||
|
||
// @property | ||
// @brief Current application user interface language | ||
// @param language Language string as per RFC5646 (e.g. en) | ||
virtual uint32_t Language(string& language /* @out */) const = 0; | ||
virtual uint32_t Language(const string&) = 0; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* If not stated otherwise in this file or this component's LICENSE file the | ||
* following copyright and licenses apply: | ||
* | ||
* Copyright 2020 RDK Management | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#pragma once | ||
#include "Module.h" | ||
|
||
namespace WPEFramework { | ||
namespace Exchange { | ||
|
||
struct EXTERNAL IConfiguration : virtual public Core::IUnknown { | ||
enum { ID = ID_CONFIGURATION }; | ||
|
||
virtual uint32_t Configure(PluginHost::IShell* framework) = 0; | ||
}; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* If not stated otherwise in this file or this component's LICENSE file the | ||
* following copyright and licenses apply: | ||
* | ||
* Copyright 2021 RDK Management | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#pragma once | ||
#include "Module.h" | ||
|
||
namespace WPEFramework { | ||
namespace Exchange { | ||
|
||
struct EXTERNAL IDIALServer : virtual public Core::IUnknown { | ||
|
||
enum { ID = ID_DIALSERVER }; | ||
|
||
struct EXTERNAL IApplication : virtual public Core::IUnknown { | ||
|
||
enum { ID = ID_DIALSERVER_APPLICATION }; | ||
|
||
virtual ~IApplication() = default; | ||
|
||
virtual uint32_t AdditionalDataURL(string& url /* @out */) const = 0; | ||
|
||
}; | ||
|
||
virtual ~IDIALServer() = default; | ||
|
||
virtual IApplication* Application(const string& name) = 0; | ||
}; | ||
|
||
} | ||
} |
Oops, something went wrong.