OpenShot Library | libopenshot-audio
0.2.0
juce_URLInputSource.h
1
2
/** @weakgroup juce_core-streams
3
* @{
4
*/
5
/*
6
==============================================================================
7
8
This file is part of the JUCE library.
9
Copyright (c) 2017 - ROLI Ltd.
10
11
JUCE is an open source library subject to commercial or open-source
12
licensing.
13
14
The code included in this file is provided under the terms of the ISC license
15
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
16
To use, copy, modify, and/or distribute this software for any purpose with or
17
without fee is hereby granted provided that the above copyright notice and
18
this permission notice appear in all copies.
19
20
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22
DISCLAIMED.
23
24
==============================================================================
25
*/
26
27
namespace
juce
28
{
29
30
//==============================================================================
31
/**
32
A type of InputSource that represents a URL.
33
34
@see InputSource
35
36
@tags{Core}
37
*/
38
class
JUCE_API
URLInputSource
:
public
InputSource
39
{
40
public
:
41
//==============================================================================
42
/** Creates a URLInputSource for a url. */
43
URLInputSource
(
const
URL
& url);
44
45
/** Move constructor which will move the URL into the InputSource.
46
47
This is useful when the url carries any security credentials.
48
*/
49
URLInputSource
(
URL
&& url);
50
51
/** Destructor. */
52
~URLInputSource
()
override
;
53
54
InputStream
* createInputStream()
override
;
55
InputStream
* createInputStreamFor (
const
String
&
relatedItemPath
)
override
;
56
int64
hashCode()
const override
;
57
58
private
:
59
//==============================================================================
60
const
URL
u;
61
62
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
URLInputSource
)
63
};
64
65
}
66
67
/** @}*/
juce::Array
Holds a resizable array of primitive or copy-by-value objects.
Definition
juce_Array.h:60
juce::InputSource
A lightweight object that can create a stream to read some kind of resource.
Definition
juce_InputSource.h:42
juce::InputStream
The base class for streams that read data.
Definition
juce_InputStream.h:41
juce::String
The JUCE String class!
Definition
juce_String.h:43
juce::URLInputSource
A type of InputSource that represents a URL.
Definition
juce_URLInputSource.h:39
juce::URL
Represents a URL and has a bunch of useful functions to manipulate it.
Definition
juce_URL.h:42
JUCE_API
#define JUCE_API
This macro is added to all JUCE public class declarations.
Definition
juce_StandardHeader.h:143
juce_core
streams
juce_URLInputSource.h
Generated on Fri Sep 20 2024 04:11:05 for OpenShot Library | libopenshot-audio by
1.9.8