zapit/include/zapit/frontend_c.h: add fe type helpers, change modes enum order

This commit is contained in:
[CST] Focus
2013-01-16 15:41:58 +04:00
parent c387a6c266
commit 740073b2c0

View File

@@ -90,11 +90,11 @@ class CFrontend
{
public:
typedef enum {
FE_MODE_UNUSED,
FE_MODE_INDEPENDENT,
FE_MODE_MASTER,
FE_MODE_LINK_LOOP,
FE_MODE_LINK_TWIN,
FE_MODE_UNUSED,
FE_MODE_LINK_TWIN
} fe_work_mode_t;
private:
@@ -255,5 +255,8 @@ class CFrontend
return true;
return false;
}
bool isCable() { return (info.type == FE_QAM); }
bool isSat() { return (info.type == FE_QPSK); }
fe_type_t getType() { return info.type; }
};
#endif /* __zapit_frontend_h__ */