libqi-api  2.4.3.28
 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 namespace qi {
13 
14  class AuthProvider;
15  typedef boost::shared_ptr<AuthProvider> AuthProviderPtr;
16 
18  {
19  public:
20  virtual ~AuthProviderFactory() {}
21  virtual AuthProviderPtr newProvider() = 0;
22  virtual unsigned int authVersionMajor() { return 1; }
23  virtual unsigned int authVersionMinor() { return 0; }
24  };
25 
26  typedef boost::shared_ptr<AuthProviderFactory> AuthProviderFactoryPtr;
27 
28 }
29 
30 #endif
#define QI_API
Definition: api.hpp:34
virtual unsigned int authVersionMinor()
virtual unsigned int authVersionMajor()
boost::shared_ptr< AuthProvider > AuthProviderPtr
boost::shared_ptr< AuthProviderFactory > AuthProviderFactoryPtr