[ create a new paste ] login | about

Link: http://codepad.org/MjGLcIje    [ raw code | fork ]

Plain Text, pasted on Feb 26:
	class EnumsProxy : public QObject
	{
		Q_OBJECT

        Q_ENUMS (CommentPrivilegesProxy)

	public:
        enum CommentPrivilegesProxy
        {
            CanReply = LJComment::Reply,
            CanEdit = LJComment::Edit,
            CanDelete = LJComment::Delete,
            CanFreeze = LJComment::Freeze,
            CanUnfreeze = LJComment::Unfreeze,
            CanSpam = LJComment::Spam,
            CanUnspam = LJComment::Unspam,
            CanScreen = LJComment::Screen,
            CanUnscreen = LJComment::Unscreen
        };
	};



      enum Privilege
        {
            Reply = 1,
            Edit = 2,
            Delete = 4,
            Freeze = 8,
            Unfreeze = 16,
            Spam = 32,
            Unspam = 64,
            Screen = 128,
            Unscreen = 256
        };
        Q_DECLARE_FLAGS (Privileges, Privilege)

                        console.log (MnemosyManager.CanDelete, commentPrivileges,
                                (MnemosyManager.CanDelete & commentPrivileges))


Create a new paste based on this one


Comments: