21#ifndef PRES_SUB_CLIENT_H
22#define PRES_SUB_CLIENT_H
24#include <pjsip-simple/presence.h>
29#include <pjsip-simple/evsub.h>
30#include <pjsip-simple/evsub_msg.h>
31#include <pjsip/sip_endpoint.h>
32#include <pjsip/sip_transport.h>
133 void rescheduleTimer(
bool reschedule,
unsigned msec);
138 void reportPresence();
146 bool isTermReason(
const std::string&);
150 unsigned getTermCode();
void enable(bool flag)
Enable the monitoring and report signal to the client.
bool isPresent()
Is the buddy present.
bool unsubscribe()
Send a SUBCRIBE to the PXB or directly to a pres_client in the IP2IP context but the 0s timeout make ...
bool match(PresSubClient *b)
Compare with another pres_client's uris.
void incLock()
TODO: explain this:
bool isSubscribed()
Return the monitor variable.
bool lock()
Data lock function.
bool subscribe()
Send a SUBCRIBE to the PXB or directly to a pres_client in the IP2IP context.
std::string_view getURI()
Return the pres_client URI.
void unlock()
Data unlock function.
std::string_view getLineStatus()
A message from the URIs.
~PresSubClient()
Destructor.
SIPPresence * getPresence()
Get associated parent presence_module.
void emitSignal(Args... args)
Simple macro to hide class' copy constructor and assignment operator.
#define NON_COPYABLE(ClassName)