2015-05-06 00:50:57 +00:00
|
|
|
#ifndef CAPPLICATION_UNIX_CPP
|
|
|
|
#error This file may only be included from CApplicationUnix.cpp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "IApplication.hpp"
|
|
|
|
|
|
|
|
namespace boo
|
|
|
|
{
|
|
|
|
|
|
|
|
IWindow* _CWindowWaylandNew(const std::string& title);
|
|
|
|
|
|
|
|
class CApplicationWayland final : public IApplication
|
|
|
|
{
|
2015-05-10 07:02:18 +00:00
|
|
|
IApplicationCallback& m_callback;
|
2015-05-06 00:50:57 +00:00
|
|
|
const std::string m_friendlyName;
|
|
|
|
const std::string m_pname;
|
|
|
|
const std::vector<std::string> m_args;
|
|
|
|
|
|
|
|
void _deletedWindow(IWindow* window)
|
|
|
|
{
|
|
|
|
(void)window;
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
2015-05-10 07:02:18 +00:00
|
|
|
CApplicationWayland(IApplicationCallback& callback,
|
2015-05-06 00:50:57 +00:00
|
|
|
const std::string& friendlyName,
|
|
|
|
const std::string& pname,
|
|
|
|
const std::vector<std::string>& args)
|
|
|
|
: m_callback(callback),
|
|
|
|
m_friendlyName(friendlyName),
|
|
|
|
m_pname(pname),
|
|
|
|
m_args(args)
|
|
|
|
{}
|
|
|
|
|
|
|
|
EPlatformType getPlatformType() const
|
|
|
|
{
|
|
|
|
return PLAT_WAYLAND;
|
|
|
|
}
|
|
|
|
|
|
|
|
void run()
|
|
|
|
{
|
|
|
|
|
2015-05-09 05:33:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void quit()
|
|
|
|
{
|
|
|
|
|
2015-05-06 00:50:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const std::string& getProcessName() const
|
|
|
|
{
|
|
|
|
return m_pname;
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::vector<std::string>& getArgs() const
|
|
|
|
{
|
|
|
|
return m_args;
|
|
|
|
}
|
|
|
|
|
|
|
|
IWindow* newWindow(const std::string& title)
|
|
|
|
{
|
|
|
|
return _CWindowWaylandNew(title);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|