~ubuntu-branches/ubuntu/utopic/mir/utopic-proposed

« back to all changes in this revision

Viewing changes to src/client/client_platform_factory.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-03-10 19:28:46 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: package-import@ubuntu.com-20140310192846-rq9qm3ec26yrelo2
Tags: upstream-0.1.6+14.04.20140310
ImportĀ upstreamĀ versionĀ 0.1.6+14.04.20140310

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef MIR_CLIENT_CLIENT_PLATFORM_FACTORY_H_
19
19
#define MIR_CLIENT_CLIENT_PLATFORM_FACTORY_H_
20
20
 
 
21
#include <memory>
 
22
 
21
23
namespace mir
22
24
{
23
25
namespace client
29
31
class ClientPlatformFactory
30
32
{
31
33
public:
32
 
    virtual ~ClientPlatformFactory() {}
 
34
    virtual ~ClientPlatformFactory() = default;
33
35
 
34
36
    virtual std::shared_ptr<ClientPlatform> create_client_platform(ClientContext* context) = 0;
35
37
 
36
38
protected:
37
39
    ClientPlatformFactory() = default;
38
 
    ClientPlatformFactory(const ClientPlatformFactory& p) = delete;
39
 
    ClientPlatformFactory& operator=(const ClientPlatformFactory& p) = delete;
 
40
    ClientPlatformFactory(ClientPlatformFactory const& p) = delete;
 
41
    ClientPlatformFactory& operator=(ClientPlatformFactory const& p) = delete;
40
42
};
41
43
 
 
44
extern "C" typedef std::shared_ptr<ClientPlatformFactory>(*CreateClientPlatformFactory)();
 
45
extern "C" std::shared_ptr<ClientPlatformFactory> create_client_platform_factory();
 
46
 
42
47
}
43
48
}
44
49