OpenMW
apps/openmw/mwgui/pickpocketitemmodel.hpp
Go to the documentation of this file.
00001 #ifndef MWGUI_PICKPOCKET_ITEM_MODEL_H
00002 #define MWGUI_PICKPOCKET_ITEM_MODEL_H
00003 
00004 #include "itemmodel.hpp"
00005 
00006 namespace MWGui
00007 {
00008 
00010     class PickpocketItemModel : public ProxyItemModel
00011     {
00012     public:
00013         PickpocketItemModel (const MWWorld::Ptr& thief, ItemModel* sourceModel);
00014         virtual ItemStack getItem (ModelIndex index);
00015         virtual size_t getItemCount();
00016         virtual void update();
00017         virtual void removeItem (const ItemStack& item, size_t count);
00018 
00019     private:
00020         std::vector<ItemStack> mHiddenItems;
00021         std::vector<ItemStack> mItems;
00022     };
00023 
00024 }
00025 
00026 #endif