objc2_contacts/generated/
CNInstantMessageAddress.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 pub struct CNInstantMessageAddress;
19);
20
21extern_conformance!(
22 unsafe impl NSCoding for CNInstantMessageAddress {}
23);
24
25extern_conformance!(
26 unsafe impl NSCopying for CNInstantMessageAddress {}
27);
28
29unsafe impl CopyingHelper for CNInstantMessageAddress {
30 type Result = Self;
31}
32
33extern_conformance!(
34 unsafe impl NSObjectProtocol for CNInstantMessageAddress {}
35);
36
37extern_conformance!(
38 unsafe impl NSSecureCoding for CNInstantMessageAddress {}
39);
40
41impl CNInstantMessageAddress {
42 extern_methods!(
43 #[unsafe(method(username))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn username(&self) -> Retained<NSString>;
46
47 #[unsafe(method(service))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn service(&self) -> Retained<NSString>;
50
51 #[unsafe(method(initWithUsername:service:))]
52 #[unsafe(method_family = init)]
53 pub unsafe fn initWithUsername_service(
54 this: Allocated<Self>,
55 username: &NSString,
56 service: &NSString,
57 ) -> Retained<Self>;
58
59 #[unsafe(method(localizedStringForKey:))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn localizedStringForKey(key: &NSString) -> Retained<NSString>;
63
64 #[unsafe(method(localizedStringForService:))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn localizedStringForService(service: &NSString) -> Retained<NSString>;
68 );
69}
70
71impl CNInstantMessageAddress {
73 extern_methods!(
74 #[unsafe(method(init))]
75 #[unsafe(method_family = init)]
76 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
77
78 #[unsafe(method(new))]
79 #[unsafe(method_family = new)]
80 pub unsafe fn new() -> Retained<Self>;
81 );
82}
83
84extern "C" {
85 pub static CNInstantMessageAddressUsernameKey: &'static NSString;
87}
88
89extern "C" {
90 pub static CNInstantMessageAddressServiceKey: &'static NSString;
92}
93
94extern "C" {
95 pub static CNInstantMessageServiceAIM: &'static NSString;
97}
98
99extern "C" {
100 pub static CNInstantMessageServiceFacebook: &'static NSString;
102}
103
104extern "C" {
105 pub static CNInstantMessageServiceGaduGadu: &'static NSString;
107}
108
109extern "C" {
110 pub static CNInstantMessageServiceGoogleTalk: &'static NSString;
112}
113
114extern "C" {
115 pub static CNInstantMessageServiceICQ: &'static NSString;
117}
118
119extern "C" {
120 pub static CNInstantMessageServiceJabber: &'static NSString;
122}
123
124extern "C" {
125 pub static CNInstantMessageServiceMSN: &'static NSString;
127}
128
129extern "C" {
130 pub static CNInstantMessageServiceQQ: &'static NSString;
132}
133
134extern "C" {
135 pub static CNInstantMessageServiceSkype: &'static NSString;
137}
138
139extern "C" {
140 pub static CNInstantMessageServiceYahoo: &'static NSString;
142}