Back to index

lightning-sunbird  0.9+nobinonly
RunnableMixin.h
Go to the documentation of this file.
00001 /*
00002        RunnableMixin.h
00003        
00004        Provides a mixin nsIRunnable implementation.
00005        
00006        by Patrick C. Beard.
00007  */
00008 
00009 #pragma once
00010 
00011 #include "nsIThreadManager.h"
00012 #include "SupportsMixin.h"
00013 
00014 class RunnableMixin : public nsIRunnable, private SupportsMixin {
00015 public:
00016        RunnableMixin();
00017 
00018        DECL_SUPPORTS_MIXIN
00019 
00020        NS_IMETHOD Run() = 0;
00021 
00022 private:
00023        // support for SupportsMixin.
00024        static const InterfaceInfo sInterfaces[];
00025        static const UInt32 kInterfaceCount;
00026 };