2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-02 10:15:23 +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 .
|
|
|
|
*/
|
2000-09-27 08:33:34 +00:00
|
|
|
|
2013-10-23 19:14:56 +02:00
|
|
|
#ifndef INCLUDED_SVL_FSTATHELPER_HXX
|
|
|
|
#define INCLUDED_SVL_FSTATHELPER_HXX
|
2000-09-27 08:33:34 +00:00
|
|
|
|
2012-03-18 09:16:09 +00:00
|
|
|
#include <rtl/ustring.hxx>
|
2014-01-29 21:56:01 -02:00
|
|
|
#include <svl/svldllapi.h>
|
2000-09-27 08:33:34 +00:00
|
|
|
|
|
|
|
class Date;
|
2014-09-28 15:49:26 +02:00
|
|
|
namespace tools { class Time; }
|
2000-09-27 08:33:34 +00:00
|
|
|
|
|
|
|
namespace FStatHelper {
|
|
|
|
|
|
|
|
/** Return the modified time and date stamp for this URL.
|
|
|
|
|
|
|
|
@param URL the asking URL
|
|
|
|
|
|
|
|
@param pDate if unequal 0, the function set the date stamp
|
|
|
|
|
|
|
|
@param pTime if unequal 0, the function set the time stamp
|
|
|
|
|
|
|
|
@return it was be able to get the date/time stamp
|
|
|
|
*/
|
2014-02-19 21:49:02 +01:00
|
|
|
SVL_DLLPUBLIC bool GetModifiedDateTimeOfFile( const OUString& rURL,
|
2014-09-28 15:49:26 +02:00
|
|
|
Date* pDate, tools::Time* pTime );
|
2000-09-27 08:33:34 +00:00
|
|
|
|
|
|
|
/** Return if under the URL a document exist. This is only a wrapper for the
|
|
|
|
UCB.IsContent.
|
|
|
|
*/
|
2014-02-19 21:49:02 +01:00
|
|
|
SVL_DLLPUBLIC bool IsDocument( const OUString& rURL );
|
2000-09-27 08:33:34 +00:00
|
|
|
|
2001-10-17 12:28:31 +00:00
|
|
|
/** Return if under the URL a folder exist. This is only a wrapper for the
|
|
|
|
UCB.isFolder.
|
|
|
|
*/
|
2014-02-19 21:49:02 +01:00
|
|
|
SVL_DLLPUBLIC bool IsFolder( const OUString& rURL );
|
2001-10-17 12:28:31 +00:00
|
|
|
|
2006-06-19 19:18:13 +00:00
|
|
|
}
|
2000-09-27 08:33:34 +00:00
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|