summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/bcat/news/news_interface.h
blob: d95edba3d5ed45c5ab8671ab9db555fa0258259b (plain) (blame)
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
29
30
31
32
33
34
35
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

#include "core/hle/service/cmif_types.h"
#include "core/hle/service/service.h"

namespace Core {
class System;
}

namespace Service::BCAT {
class INewsService;
class INewlyArrivedEventHolder;
class INewsDataService;
class INewsDatabaseService;
class IOverwriteEventHolder;

class NewsInterface final : public ServiceFramework<NewsInterface> {
public:
    explicit NewsInterface(Core::System& system_, u32 permissions_, const char* name_);
    ~NewsInterface() override;

private:
    Result CreateNewsService(OutInterface<INewsService> out_interface);
    Result CreateNewlyArrivedEventHolder(OutInterface<INewlyArrivedEventHolder> out_interface);
    Result CreateNewsDataService(OutInterface<INewsDataService> out_interface);
    Result CreateNewsDatabaseService(OutInterface<INewsDatabaseService> out_interface);
    Result CreateOverwriteEventHolder(OutInterface<IOverwriteEventHolder> out_interface);

    u32 permissions;
};

} // namespace Service::BCAT