Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontend Services: Move action handling from MythFEXML to service.
- The 'helper' method GetActionTest remains in MythFEXML. - Arguments are now capitalised for consistency with the rest of the services API. - the Frontend Remote Control is modified for the new urls and methods. Old methods: http://frontend-ip:6547/MythFE/SendAction?action=UP http://frontend- New methods: http://frontend-ip:6547/Frontend/SendAction?Action=UP http://frontend-
- Loading branch information
Mark Kendall
committed
Nov 11, 2011
1 parent
3f57e79
commit 9a90d31
Showing
7 changed files
with
189 additions
and
152 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
mythtv/libs/libmythservicecontracts/datacontracts/frontendActionList.h
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,47 @@ | ||
#ifndef FRONTENDACTIONLIST_H | ||
#define FRONTENDACTIONLIST_H | ||
|
||
#include "serviceexp.h" | ||
#include "datacontracthelper.h" | ||
|
||
namespace DTC | ||
{ | ||
class SERVICE_PUBLIC FrontendActionList : public QObject | ||
{ | ||
Q_OBJECT | ||
Q_CLASSINFO("version", "1.0"); | ||
|
||
Q_CLASSINFO("ActionList_type", "Action"); // is this legal? | ||
|
||
Q_PROPERTY(QVariantMap ActionList READ ActionList DESIGNABLE true) | ||
|
||
PROPERTYIMP_RO_REF(QVariantMap, ActionList) | ||
|
||
public: | ||
static void InitializeCustomTypes() | ||
{ | ||
qRegisterMetaType<FrontendActionList>(); | ||
qRegisterMetaType<FrontendActionList*>(); | ||
} | ||
|
||
public: | ||
FrontendActionList(QObject *parent = 0) : QObject(parent) | ||
{ | ||
} | ||
|
||
FrontendActionList(const FrontendActionList &src) | ||
{ | ||
Copy(src); | ||
} | ||
|
||
void Copy(const FrontendActionList &src) | ||
{ | ||
m_ActionList = src.m_ActionList; | ||
} | ||
}; | ||
}; | ||
|
||
Q_DECLARE_METATYPE(DTC::FrontendActionList) | ||
Q_DECLARE_METATYPE(DTC::FrontendActionList*) | ||
|
||
#endif // FRONTENDACTIONLIST_H |
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
Oops, something went wrong.