27 #ifndef __SB_LIBRARY_CONSTRAINTS_H__
28 #define __SB_LIBRARY_CONSTRAINTS_H__
30 #include <sbILibraryConstraints.h>
32 #include <nsAutoPtr.h>
33 #include <nsClassHashtable.h>
35 #include <nsStringGlue.h>
37 #include <nsIClassInfo.h>
38 #include <nsISerializable.h>
51 NS_DECL_SBILIBRARYCONSTRAINTBUILDER
55 nsresult EnsureConstraint();
56 nsRefPtr<sbLibraryConstraint> mConstraint;
66 NS_DECL_SBILIBRARYCONSTRAINT
67 NS_DECL_NSISERIALIZABLE
75 nsresult AddToCurrent(
const nsAString& aProperty,
sbStringArray* aArray);
88 NS_DECL_SBILIBRARYCONSTRAINTGROUP
95 nsresult Add(
const nsAString& aProperty,
sbStringArray* aArray);
96 nsresult Read(nsIObjectInputStream* aStream);
97 nsresult Write(nsIObjectOutputStream* aStream);
99 static PLDHashOperator PR_CALLBACK
100 AddKeysToArrayCallback(nsStringHashKey::KeyType aKey,
114 NS_DECL_SBILIBRARYSORT
115 NS_DECL_NSISERIALIZABLE
NS_DECL_ISUPPORTS NS_DECL_SBILIBRARYCONSTRAINT NS_DECL_NSISERIALIZABLE NS_DECL_NSICLASSINFO sbLibraryConstraint()
nsTArray< sbConstraintGroupRefPtr > sbConstraintArray
nsClassHashtable< nsStringHashKey, sbStringArray > sbConstraintGroup
nsTArray< nsString > sbStringArray
nsRefPtr< sbLibraryConstraintGroup > sbConstraintGroupRefPtr
NS_DECL_ISUPPORTS NS_DECL_SBILIBRARYSORT NS_DECL_NSISERIALIZABLE NS_DECL_NSICLASSINFO sbLibrarySort()
nsTArray< nsString > sbStringArray
NS_DECL_ISUPPORTS NS_DECL_SBILIBRARYCONSTRAINTGROUP sbLibraryConstraintGroup()
A sort that can be applied to a media list view.
NS_DECL_ISUPPORTS NS_DECL_SBILIBRARYCONSTRAINTBUILDER nsresult Init()