8a9cb9effd
Use IM_MESSAGEs, IM_REGISTER_COMMAND and IM_REGISTER_USER_ITEM, for registering commands and user-list pop-up items. The former replaces CayaProtocol::Commands(), which was a real bad idea in the first place. Just awful. No idea why I did that instead of this, which is nicer and significantly easier anyway.
23 lines
551 B
C++
23 lines
551 B
C++
/*
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
*/
|
|
#ifndef DEFAULTITEMS_H
|
|
#define DEFAULTITEMS_H
|
|
|
|
#include <ObjectList.h>
|
|
|
|
class BLooper;
|
|
class BMessage;
|
|
|
|
|
|
void DefaultCommands(BLooper* target);
|
|
void DefaultUserPopUpItems(BLooper* target);
|
|
BMessage* _UserMenuItem(const char* label, BMessage* msg,
|
|
int32 user_perms, int32 target_perms,
|
|
int32 target_lacks, bool ignorePriority,
|
|
bool toProtocol);
|
|
|
|
|
|
#endif // DEFAULTITEMS_H
|