2
* This file is part of SubLib.
3
* Copyright (C) 2007 Pedro Castro
5
* SubLib is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* SubLib is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
/// <summary>Represents the results of a search operation.</summary>
25
public class SubtitleSearchResults {
26
private int subtitle = -1;
27
private SubtitleTextType textType = SubtitleTextType.Text;
28
private int index = -1;
29
private int length = -1;
31
/// <summary>Creates a new instance of the <see cref="SubtitleSearchResults" /> class.</summary>
32
/// <param name="subtitle">The zero-based number of the subtitle where the text was found.</param>
33
/// <param name="textType">The type of text content where the text was found.</param>
34
/// <param name="index">The zero-based position where the text was found, within a subtitle.</param>
35
/// <param name="length">The length of the found text.</param>
36
public SubtitleSearchResults (int subtitle, SubtitleTextType textType, int index, int length) {
37
this.subtitle = subtitle;
38
this.textType = textType;
43
/* Public properties */
45
/// <summary>The subtitle number.</summary>
47
get { return subtitle; }
50
/// <summary>The type of the text content.</summary>
51
public SubtitleTextType TextType {
52
get { return textType; }
55
/// <summary>The text index.</summary>
60
/// <summary>The text length.</summary>
62
get { return length; }