libreoffice-online/common/Freemium.hpp
Pranam Lashkari daef96dcb3 freemium: corrected typos
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If21f4471b3ad4b20f049e2e9f2330e31989ead0b
2021-09-01 09:44:19 +02:00

43 lines
1.8 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <string>
#include <vector>
#include "ConfigUtil.hpp"
namespace Freemium
{
class FreemiumManager
{
static std::vector<std::string> FreemiumDenyList;
static bool _isFreemiumUser;
static std::string FreemiumDenyListString;
static void generateDenyList();
public:
FreemiumManager();
static const std::vector<std::string>& getFreemiumDenyList();
static const std::string getFreemiumDenyListString();
static bool isFreemiumUser() { return _isFreemiumUser; }
static void setFreemiumUser(bool isFreemiumUser) { _isFreemiumUser = isFreemiumUser; }
static std::string getFreemiumPurchaseTitle() { return config::getString("freemium.purchase_title", ""); }
static std::string getFreemiumPurchaseLink() { return config::getString("freemium.purchase_link", ""); }
static std::string getFreemiumPurchaseDescription() { return config::getString("freemium.purchase_description", ""); }
static std::string getWriterHighlights() { return config::getString("freemium.writer_subscription_highlights", ""); }
static std::string getCalcHighlights() { return config::getString("freemium.calc_subscription_highlights", ""); }
static std::string getImpressHighlights() { return config::getString("freemium.impress_subscription_highlights", ""); }
static std::string getDrawHighlights() { return config::getString("freemium.draw_subscription_highlights", ""); }
};
} // namespace Freemium
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */