Welcome to mirror list, hosted at ThFree Co, Russian Federation.

http_user_agent.hpp « platform - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 24179eb76bea402d232f7968320f1ab42297ae29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <string>

namespace platform
{
class HttpUserAgent
{
public:
  HttpUserAgent();
  std::string Get() const;
  std::string const & GetAppVersion() const { return m_appVersion; }

  operator std::string() const { return Get(); }

private:
  std::string ExtractAppVersion() const;

  std::string m_appVersion;
};
}  // platform