mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
a250690f30
* fix: break will never be executed * fix: rewrite rimraf() to be non-throwing * fix: conditional operation returns same value whether condition is true or false * fix: use std::array instead of a C-style array * fix: remove redundant access specifier * fix: replace switch with if for readability * fix: convert integer literal to a bool literal * fix: replace const std::string reference to std::string_view * fix: remove redundant access specifier * fix: replace const std::string reference to std::string_view * fix: remove unused parameter * fix: remove redundant access specifier * fix: use std::array instead of C-style array * fix: remove redundant access specifier * fix: replace const std::string reference with std::string_view * fix: remove redundant access specifier * fix: use std::array instead of C-style array * fix: remove redundant access specifier * fix: replace const std::string reference to std::string_view * fix: remove redundant access specifier * fix: merge if statement with enclosing one * chore: clang-format * chore: clang-format * Revert "fix: remove redundant access specifier" This reverts commit054e4e7eec
. * Revert "fix: remove redundant access specifier" This reverts commit2c92f227e8
. * Revert "fix: remove redundant access specifier" This reverts commita0710202a8
. * Revert "fix: remove redundant access specifier" This reverts commit54da1d9397
. * Revert "fix: remove redundant access specifier" This reverts commitf7b1777578
. * Revert "fix: remove redundant access specifier" This reverts commitad8e3dfff4
. * chore: revert access specifier change
29 lines
682 B
C++
29 lines
682 B
C++
// This file Copyright © 2008-2022 Mnemosyne LLC.
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0), GPLv3 (SPDX: GPL-3.0),
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
#include <memory>
|
|
#include <string_view>
|
|
|
|
#include <glibmm.h>
|
|
#include <gtkmm.h>
|
|
|
|
#include <libtransmission/tr-macros.h>
|
|
|
|
class Session;
|
|
|
|
class FreeSpaceLabel : public Gtk::Label
|
|
{
|
|
public:
|
|
FreeSpaceLabel(Glib::RefPtr<Session> const& core, std::string_view dir = {});
|
|
~FreeSpaceLabel() override;
|
|
|
|
TR_DISABLE_COPY_MOVE(FreeSpaceLabel)
|
|
|
|
void set_dir(std::string_view dir);
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> const impl_;
|
|
};
|