1 /** |
|
2 * @file smfsubtitlesearchfilter.h |
|
3 * @author Nalina Hariharan, Sasken Communication Technologies Ltd - Initial contribution |
|
4 * @version 1.0 |
|
5 * |
|
6 * @section LICENSE |
|
7 * |
|
8 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
9 * All rights reserved. |
|
10 * This component and the accompanying materials are made available |
|
11 * under the terms of the "{License}" |
|
12 * which accompanies this distribution, and is available |
|
13 * at the URL "{LicenseUrl}". |
|
14 * |
|
15 * @section DESCRIPTION |
|
16 * |
|
17 * The subtitle search filter class represents the filter options |
|
18 * for searching tracks |
|
19 */ |
|
20 |
|
21 #ifndef SMFSUBTITLESEARCHFILTER_H_ |
|
22 #define SMFSUBTITLESEARCHFILTER_H_ |
|
23 |
|
24 #include <QDateTime> |
|
25 #include "SmfClientGlobal.h" |
|
26 /** |
|
27 * The subtitle search filter class represents the filter options |
|
28 * for searching tracks |
|
29 */ |
|
30 class SMFCLIENT_EXPORT SmfSubtitleSearchFilter : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 public: |
|
34 /** |
|
35 * Constructor with default argument |
|
36 * @param aParent The parent object |
|
37 */ |
|
38 SmfSubtitleSearchFilter( QObject *aParent = 0 ); |
|
39 |
|
40 /** |
|
41 * Destructor |
|
42 */ |
|
43 ~SmfSubtitleSearchFilter( ); |
|
44 |
|
45 /** |
|
46 * Method to get the language |
|
47 * @param aLang The language |
|
48 */ |
|
49 void getLanguage( QString &aLang ); |
|
50 |
|
51 /** |
|
52 * Method to get the frame rate |
|
53 * @return The frame rate |
|
54 */ |
|
55 double getFrameRate( ); |
|
56 |
|
57 /** |
|
58 * Method to get the duration |
|
59 * @param aTime The duration |
|
60 */ |
|
61 void getDuration( QTime &aTime ); |
|
62 |
|
63 /** |
|
64 * Method to get the release year |
|
65 * @param aDateTime The release year |
|
66 */ |
|
67 void getReleaseYear( QDateTime &aDateTime ); |
|
68 |
|
69 /** |
|
70 * Method to set the language |
|
71 * @param aLang The new language |
|
72 */ |
|
73 void setLanguage( const QString& aLang ); |
|
74 |
|
75 /** |
|
76 * Method to set the frame rate |
|
77 * @param aFr The new frame rate |
|
78 */ |
|
79 void setFrameRate( const double aFr ); |
|
80 |
|
81 /** |
|
82 * Method to set the duration |
|
83 * @param aDuration The new duration |
|
84 */ |
|
85 void setDuration( const QTime& aDuration ); |
|
86 |
|
87 /** |
|
88 * Method to set the release year |
|
89 * @param aDateTime The new release year |
|
90 */ |
|
91 void setReleaseYear( const QDateTime &aDateTime ); |
|
92 |
|
93 private: |
|
94 QString m_language; // language |
|
95 double m_frameRate; // frame rate |
|
96 QTime m_duration; // duration |
|
97 QDateTime m_releaseYr; // release year |
|
98 }; |
|
99 |
|
100 #endif /* SMFSUBTITLESEARCHFILTER_H_ */ |
|