Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

PMYouMedia.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                    (C) SUSE LINUX AG |
00011 \----------------------------------------------------------------------/
00012 
00013   Author:     Cornelius Schumacher <cschum@suse.de>
00014   Maintainer: Cornelius Schumacher <cschum@suse.de>
00015 
00016   Purpose: Class representing a YOU media.
00017 
00018 /-*/
00019 #ifndef PMYOUMEDIA_H
00020 #define PMYOUMEDIA_H
00021 
00022 #include <y2pm/PMYouMediaPtr.h>
00023 
00024 #include <y2pm/MediaAccess.h>
00025 
00026 #include <string>
00027 
00031 class PMYouMedia : public CountedRep
00032 {
00033   REP_BODY(PMYouMedia);
00034 
00035   public:
00039     PMYouMedia( MediaAccess & );
00040 
00044     ~PMYouMedia();
00045 
00046     PMError readInfo( int number );
00047 
00048     bool isPartOf( const PMYouMediaPtr & );
00049 
00050     int number() const { return _number; }
00051 
00052     std::string vendor() const { return _vendor; }
00053     std::string id() const { return _id; }
00054     int count() const { return _count; }
00055     std::string flags() const { return _flags; }
00056 
00057     bool doubleSided() const;
00058 
00059   private:
00060     MediaAccess &_media;
00061   
00062     int _number;
00063   
00064     std::string _vendor;
00065     std::string _id;
00066     int _count;
00067     std::string _flags;
00068 };
00069 
00070 #endif

Generated on Fri Nov 9 14:30:31 2007 for yast2-packagemanager by doxygen 1.3.6