ObjXMPP  Diff

Differences From Artifact [969a73bffe]:

To Artifact [810c5e6737]:


21
22
23
24
25
26
27
28
29


30
31
32
33
34
35

36


37


38


39


40


41
42
43
44


45
46
47
48
49
50




51
52
53
54
55
56
57


58
59
60
61
62



63
64
65
66
67
68
69
70


71
72
73
74
75
76




77
78
79
80
81
82
83


84
85
86
87
88



89
90
91
92
93
94
21
22
23
24
25
26
27


28
29
30
31
32
33
34
35
36

37
38
39
40
41

42
43
44
45
46

47
48
49
50


51
52
53
54




55
56
57
58
59
60
61
62
63


64
65
66
67



68
69
70
71
72
73
74
75
76


77
78
79
80




81
82
83
84
85
86
87
88
89


90
91
92
93



94
95
96
97
98
99
100
101
102







-
-
+
+






+
-
+
+

+
+
-
+
+

+
+
-
+
+


-
-
+
+


-
-
-
-
+
+
+
+





-
-
+
+


-
-
-
+
+
+






-
-
+
+


-
-
-
-
+
+
+
+





-
-
+
+


-
-
-
+
+
+






 * POSSIBILITY OF SUCH DAMAGE.
 */

#import <ObjFW/ObjFW.h>

OF_ASSUME_NONNULL_BEGIN

/**
 * \brief A class describing a Service Discovery Identity
/*!
 * @brief A class describing a Service Discovery Identity
 */
@interface XMPPDiscoIdentity: OFObject <OFComparing>
{
	OFString *_category, *_name, *_type;
}

/*!
/// \brief The category of the identity
 * The category of the identity.
 */
@property (readonly, nonatomic) OFString *category;

/*!
/// \brief The name of the identity, might be unset
 * The name of the identity, might be unset.
 */
@property (readonly, nonatomic) OFString *name;

/*!
/// \brief The type of the identity
 * The type of the identity.
 */
@property (readonly, nonatomic) OFString *type;

/**
 * \brief Creates a new autoreleased XMPPDiscoIdentity with the specified
/*!
 * @brief Creates a new autoreleased XMPPDiscoIdentity with the specified
 *	  category, type and name.
 *
 * \param category The category of the identity
 * \param type The type of the identity
 * \param name The name of the identity
 * \return A new autoreleased XMPPDiscoIdentity
 * @param category The category of the identity
 * @param type The type of the identity
 * @param name The name of the identity
 * @return A new autoreleased XMPPDiscoIdentity
 */
+ (instancetype)identityWithCategory: (OFString *)category
				type: (OFString *)type
				name: (nullable OFString *)name;

/**
 * \brief Creates a new autoreleased XMPPDiscoIdentity with the specified
/*!
 * @brief Creates a new autoreleased XMPPDiscoIdentity with the specified
 *	  category and type.
 *
 * \param category The category of the identity
 * \param type The type of the identity
 * \return A new autoreleased XMPPDiscoIdentity
 * @param category The category of the identity
 * @param type The type of the identity
 * @return A new autoreleased XMPPDiscoIdentity
 */
+ (instancetype)identityWithCategory: (OFString *)category
				type: (OFString *)type;

- init OF_UNAVAILABLE;

/**
 * \brief Initializes an already allocated XMPPDiscoIdentity with the specified
/*!
 * @brief Initializes an already allocated XMPPDiscoIdentity with the specified
 *	  category, type and name.
 *
 * \param category The category of the identity
 * \param type The type of the identity
 * \param name The name of the identity
 * \return An initialized XMPPDiscoIdentity
 * @param category The category of the identity
 * @param type The type of the identity
 * @param name The name of the identity
 * @return An initialized XMPPDiscoIdentity
 */
- initWithCategory: (OFString *)category
	      type: (OFString *)type
	      name: (nullable OFString *)name OF_DESIGNATED_INITIALIZER;

/**
 * \brief Initializes an already allocated XMPPDiscoIdentity with the specified
/*!
 * @brief Initializes an already allocated XMPPDiscoIdentity with the specified
 *	  category and type.
 *
 * \param category The category of the identity
 * \param type The type of the identity
 * \return An initialized XMPPDiscoIdentity
 * @param category The category of the identity
 * @param type The type of the identity
 * @return An initialized XMPPDiscoIdentity
 */
- initWithCategory: (OFString *)category
	      type: (OFString *)type;
@end

OF_ASSUME_NONNULL_END