File: afcdiskusage.h

package info (click to toggle)
kio-extras 4%3A25.04.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 31,928 kB
  • sloc: cpp: 28,852; ansic: 3,084; perl: 1,048; xml: 116; sh: 92; python: 28; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * SPDX-FileCopyrightText: 2022 Kai Uwe Broulik <kde@broulik.de>
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#pragma once

#include <KIO/Global>

#include "afcclient.h"

class AfcDiskUsage
{
public:
    AfcDiskUsage();
    explicit AfcDiskUsage(const AfcClient::Ptr &client);

    bool isValid() const;

    KIO::filesize_t total() const;
    KIO::filesize_t free() const;

private:
    bool m_valid = false;

    KIO::filesize_t m_total = 0;
    KIO::filesize_t m_free = 0;
};