1 /* 2 * Copyright 2015, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _CARD_VIEW_H 6 #define _CARD_VIEW_H 7 8 #include <View.h> 9 10 class BCardLayout; 11 12 class BCardView : public BView { 13 public: 14 BCardView(); 15 BCardView(const char* name); 16 BCardView(BMessage* from); 17 virtual ~BCardView(); 18 19 virtual void SetLayout(BLayout* layout); 20 BCardLayout* CardLayout() const; 21 22 static BArchivable* Instantiate(BMessage* from); 23 24 virtual status_t Perform(perform_code d, void* arg); 25 26 private: 27 28 // FBC padding - prevent breaking compatibility when methods are added 29 virtual void _ReservedCardView1(); 30 virtual void _ReservedCardView2(); 31 virtual void _ReservedCardView3(); 32 virtual void _ReservedCardView4(); 33 virtual void _ReservedCardView5(); 34 virtual void _ReservedCardView6(); 35 virtual void _ReservedCardView7(); 36 virtual void _ReservedCardView8(); 37 virtual void _ReservedCardView9(); 38 virtual void _ReservedCardView10(); 39 40 // forbitten methods 41 BCardView(const BCardView&); 42 void operator =(const BCardView&); 43 44 uint32 _reserved[10]; 45 }; 46 47 #endif // _CARD_VIEW_H 48