You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

notificationimpl.h 633 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef NOTIFICATIONIMPL_H
  2. #define NOTIFICATIONIMPL_H
  3. #ifdef __cplusplus
  4. extern "C"{
  5. #endif
  6. #import <Foundation/Foundation.h>
  7. typedef void(*ClickCallback)(void*, NSString*);
  8. typedef void(*ReplyCallback)(void*, long, NSString*, NSString*);
  9. @interface NotificationImpl : NSObject
  10. {
  11. @public
  12. ClickCallback clickCallback;
  13. ReplyCallback replyCallback;
  14. void* callbackArg;
  15. @private
  16. int id;
  17. }
  18. -(instancetype)init;
  19. -(long)show: (NSString*)title message:(NSString*)msg extra:(NSString*)who;
  20. -(void)hideAll;
  21. @end
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif // NOTIFICATIONIMPL_H

mac下的“飞秋”大多数只是飞鸽传书协议,而且未发现令人满意的开源项目,所以基于c++与qt实现了基础的飞秋协议。

Contributors (1)