libqi-api  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
authproviderfactory.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 ** Copyright (C) 2014 Aldebaran Robotics
4 ** See COPYING for the license
5 */
6 
7 #ifndef _QI_MESSAGING_AUTHPROVIDERFACTORY_HPP_
8 #define _QI_MESSAGING_AUTHPROVIDERFACTORY_HPP_
9 
10 #include <boost/shared_ptr.hpp>
11 
12 #include <qi/api.hpp>
13 
14 namespace qi
15 {
16 class AuthProvider;
17 using AuthProviderPtr = boost::shared_ptr<AuthProvider>;
18 
20 {
21 public:
23  {
24  }
25  virtual AuthProviderPtr newProvider() = 0;
26  virtual unsigned int authVersionMajor()
27  {
28  return 1;
29  }
30  virtual unsigned int authVersionMinor()
31  {
32  return 0;
33  }
34 };
35 
36 using AuthProviderFactoryPtr = boost::shared_ptr<AuthProviderFactory>;
37 }
38 
39 #endif
#define QI_API
Definition: api.hpp:33
dll import/export and compiler message
virtual unsigned int authVersionMinor()
boost::shared_ptr< AuthProviderFactory > AuthProviderFactoryPtr
virtual unsigned int authVersionMajor()
boost::shared_ptr< AuthProvider > AuthProviderPtr