Pioneer
Loading...
Searching...
No Matches
ConnectionTicket.h
Go to the documentation of this file.
1// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#pragma once
5
6#include "sigc++/connection.h"
7
8// Lifetime management utility for sigc::connection
9// Use this instead of sigs::connection if you don't want to manually
10// disconnect in the destructor
11
13
15 m_connection.disconnect();
16 }
17
18 void operator=(sigc::connection &&c) {
19 m_connection = c;
20 }
21
22 sigc::connection m_connection;
23};
Definition ConnectionTicket.h:12
~ConnectionTicket()
Definition ConnectionTicket.h:14
void operator=(sigc::connection &&c)
Definition ConnectionTicket.h:18
sigc::connection m_connection
Definition ConnectionTicket.h:22