8 #ifndef QI_MESSAGING_APPLICATIONSESSION_HPP_
9 #define QI_MESSAGING_APPLICATIONSESSION_HPP_
10 #include <boost/noncopyable.hpp>
16 class ApplicationSessionPrivate;
38 Option_NoAutoExit = 1,
50 KA_GENERATE_FRIEND_REGULAR_OPS_4(
Config, _standalone, _opt, _sessionConfig, _name)
59 Config& setDefaultStandAlone(
bool standAlone);
62 bool defaultStandAlone()
const;
64 Config& setStandalone(
bool standalone);
66 bool standalone()
const;
76 Config& setDefaultUrl(
const Url& connectUrl);
78 const Url& defaultUrl()
const;
82 const boost::optional<Url>& connectUrl()
const;
89 Config& setDefaultListenUrl(
const Url& listenUrl);
91 const Url& defaultListenUrl()
const;
96 Config& setListenUrls(std::vector<Url> listenUrls);
98 const std::vector<Url>& listenUrls()
const;
104 const std::string&
name()
const;
169 const Config& config()
const;
181 Url listenUrl()
const;
187 std::vector<Url> allListenUrl()
const;
215 std::string helpText()
const;
218 std::unique_ptr<ApplicationSessionPrivate> _p;
224 #endif // QIMESSAGING_APPLICATIONSESSION_HPP_
boost::shared_ptr< Session > SessionPtr
static Url defaultConnectUrl()
These URLs are guaranteed to be valid.
Class handling startup and teardown of an application.
#define QI_API_DEPRECATED_MSG(msg__)
Compiler flags to mark a function as deprecated. It will generate a compiler warning.