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
21unsafe impl NSCoding for CNInstantMessageAddress {}
22
23unsafe impl NSCopying for CNInstantMessageAddress {}
24
25unsafe impl CopyingHelper for CNInstantMessageAddress {
26 type Result = Self;
27}
28
29unsafe impl NSObjectProtocol for CNInstantMessageAddress {}
30
31unsafe impl NSSecureCoding for CNInstantMessageAddress {}
32
33impl CNInstantMessageAddress {
34 extern_methods!(
35 #[unsafe(method(username))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn username(&self) -> Retained<NSString>;
38
39 #[unsafe(method(service))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn service(&self) -> Retained<NSString>;
42
43 #[unsafe(method(initWithUsername:service:))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn initWithUsername_service(
46 this: Allocated<Self>,
47 username: &NSString,
48 service: &NSString,
49 ) -> Retained<Self>;
50
51 #[unsafe(method(localizedStringForKey:))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn localizedStringForKey(key: &NSString) -> Retained<NSString>;
55
56 #[unsafe(method(localizedStringForService:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn localizedStringForService(service: &NSString) -> Retained<NSString>;
60 );
61}
62
63impl CNInstantMessageAddress {
65 extern_methods!(
66 #[unsafe(method(init))]
67 #[unsafe(method_family = init)]
68 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
69
70 #[unsafe(method(new))]
71 #[unsafe(method_family = new)]
72 pub unsafe fn new() -> Retained<Self>;
73 );
74}
75
76extern "C" {
77 pub static CNInstantMessageAddressUsernameKey: &'static NSString;
79}
80
81extern "C" {
82 pub static CNInstantMessageAddressServiceKey: &'static NSString;
84}
85
86extern "C" {
87 pub static CNInstantMessageServiceAIM: &'static NSString;
89}
90
91extern "C" {
92 pub static CNInstantMessageServiceFacebook: &'static NSString;
94}
95
96extern "C" {
97 pub static CNInstantMessageServiceGaduGadu: &'static NSString;
99}
100
101extern "C" {
102 pub static CNInstantMessageServiceGoogleTalk: &'static NSString;
104}
105
106extern "C" {
107 pub static CNInstantMessageServiceICQ: &'static NSString;
109}
110
111extern "C" {
112 pub static CNInstantMessageServiceJabber: &'static NSString;
114}
115
116extern "C" {
117 pub static CNInstantMessageServiceMSN: &'static NSString;
119}
120
121extern "C" {
122 pub static CNInstantMessageServiceQQ: &'static NSString;
124}
125
126extern "C" {
127 pub static CNInstantMessageServiceSkype: &'static NSString;
129}
130
131extern "C" {
132 pub static CNInstantMessageServiceYahoo: &'static NSString;
134}