sbILibraryConstraints.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
32 #include "nsISupports.idl"
33 
34 interface nsISimpleEnumerator;
35 interface nsIStringEnumerator;
36 interface sbILibraryConstraint;
38 
52 [scriptable, uuid(3da5df89-9718-4c5e-9494-0d6116ab2bdd)]
54 {
62  sbILibraryConstraintBuilder parseFromString(in AString aSerializedConstraint);
63 
69 
75  sbILibraryConstraintBuilder include(in AString aProperty,
76  in AString aValue);
77 
85  sbILibraryConstraintBuilder includeList(in AString aProperty,
86  in nsIStringEnumerator aValues);
87 
93 
98 };
99 
100 [scriptable, uuid(c271cafb-fc06-4e56-bd01-368458117618)]
102 {
103  readonly attribute unsigned long groupCount;
104  readonly attribute nsISimpleEnumerator groups;
105  sbILibraryConstraintGroup getGroup(in unsigned long aIndex);
106 
107  boolean equals(in sbILibraryConstraint aOtherConstraint);
108  AString toString();
109 };
110 
111 [scriptable, uuid(37793a91-e229-4642-9c16-290b84e24b87)]
113 {
114  readonly attribute nsIStringEnumerator properties;
115  nsIStringEnumerator getValues(in AString aProperty);
116  boolean hasProperty(in AString aProperty);
117  boolean equals(in sbILibraryConstraintGroup aOtherGroup);
118  AString toString();
119 };
120 
125 [scriptable, uuid(d9655856-f518-43f1-b096-25f52b0b629e)]
127 {
128  void init(in AString aProperty, in boolean aIsAscending);
129 
130  readonly attribute AString property;
131  readonly attribute boolean isAscending;
132  AString toString();
133 };
134 
boolean equals(in sbILibraryConstraintGroup aOtherGroup)
onPageChanged aValue
Definition: FeedWriter.js:1395
sbILibraryConstraintBuilder includeList(in AString aProperty, in nsIStringEnumerator aValues)
Adds a property / value pair to the current group for each of the values supplied in the value list...
void init(in AString aProperty, in boolean aIsAscending)
var uuid
readonly attribute unsigned long groupCount
boolean hasProperty(in AString aProperty)
sbILibraryConstraintBuilder include(in AString aProperty, in AString aValue)
Add a property / value pair to the current group.
sbILibraryConstraintBuilder parseFromString(in AString aSerializedConstraint)
Attempt to parse a serialized constraint description. This expects a string as serialized by sbILibra...
nsIStringEnumerator getValues(in AString aProperty)
boolean equals(in sbILibraryConstraint aOtherConstraint)
A sort that can be applied to a media list view.
sbILibraryConstraintBuilder intersect()
Completes the current group and starts a new one. Each group will be intersected in the result...
AString toString()
sbILibraryConstraintGroup getGroup(in unsigned long aIndex)
readonly attribute boolean isAscending
readonly attribute AString property
readonly attribute nsISimpleEnumerator groups
readonly attribute nsIStringEnumerator properties
sbILibraryConstraintBuilder includeConstraint(in sbILibraryConstraint aConstraint)
Add an existing constraint to the builder.