2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* 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/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2010-04-19 11:33:33 +02:00
|
|
|
|
2013-10-28 03:35:57 +01:00
|
|
|
#ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_MANAGER_DP_PROPERTIES_HXX
|
|
|
|
#define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_MANAGER_DP_PROPERTIES_HXX
|
2010-04-19 11:33:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-04 10:55:43 +02:00
|
|
|
#include <com/sun/star/beans/NamedValue.hpp>
|
|
|
|
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
|
|
|
|
#include <boost/optional.hpp>
|
2010-04-19 11:33:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
namespace dp_manager {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*/
|
|
|
|
class ExtensionProperties
|
|
|
|
{
|
|
|
|
protected:
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString m_propFileUrl;
|
2010-04-19 11:33:33 +02:00
|
|
|
const css::uno::Reference<css::ucb::XCommandEnvironment> m_xCmdEnv;
|
2012-09-14 18:08:57 +02:00
|
|
|
const css::uno::Reference<css::uno::XComponentContext> m_xContext;
|
2013-04-07 12:06:47 +02:00
|
|
|
::boost::optional< OUString> m_prop_suppress_license;
|
|
|
|
::boost::optional< OUString> m_prop_extension_update;
|
2010-05-28 17:50:38 +02:00
|
|
|
|
2015-04-07 13:16:24 +02:00
|
|
|
static OUString getPropertyValue(css::beans::NamedValue const & v);
|
2010-04-19 11:33:33 +02:00
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~ExtensionProperties() {};
|
2013-04-07 12:06:47 +02:00
|
|
|
ExtensionProperties(OUString const & urlExtension,
|
2012-09-14 18:08:57 +02:00
|
|
|
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
|
|
|
|
css::uno::Reference<css::uno::XComponentContext> const & xContext);
|
2010-04-19 11:33:33 +02:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
ExtensionProperties(OUString const & urlExtension,
|
2010-04-19 11:33:33 +02:00
|
|
|
css::uno::Sequence<css::beans::NamedValue> const & properties,
|
2012-09-14 18:08:57 +02:00
|
|
|
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv,
|
|
|
|
css::uno::Reference<css::uno::XComponentContext> const & xContext);
|
2010-04-19 11:33:33 +02:00
|
|
|
|
|
|
|
void write();
|
|
|
|
|
|
|
|
bool isSuppressedLicense();
|
2010-05-28 17:50:38 +02:00
|
|
|
|
|
|
|
bool isExtensionUpdate();
|
2010-04-19 11:33:33 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|