boinc/installer/Shortcut.h

49 lines
1.6 KiB
C++

// This file is part of BOINC.
// https://boinc.berkeley.edu
// Copyright (C) 2024 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// BOINC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include <nlohmann/json.hpp>
#include "Record.h"
#include "InstallerStrings.h"
class Shortcut : public Record {
public:
explicit Shortcut(const nlohmann::json& json, const std::string& component,
const InstallerStrings& installerStrings);
~Shortcut() = default;
MSIHANDLE getRecord() const override;
private:
std::string shortcut{};
std::string directory{};
std::string name{};
std::string component{};
std::string target{};
std::string arguments{};
std::string description{};
std::string hotkey{};
std::string icon{};
int iconIndex = MSI_NULL_INTEGER;
int showCmd = MSI_NULL_INTEGER;
std::string wkDir{};
std::string displayResourceDll{};
int displayResourceId = MSI_NULL_INTEGER;
std::string descriptionResourceDll{};
int descriptionResourceId = MSI_NULL_INTEGER;
};