qthighway/xqservice/src/xqappmgr.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 24 9d760f716ca8
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    38 class XQAIW_EXPORT XQApplicationManager : public QObject
    38 class XQAIW_EXPORT XQApplicationManager : public QObject
    39 {
    39 {
    40     Q_OBJECT
    40     Q_OBJECT
    41 
    41 
    42 public:
    42 public:
    43             
    43 
       
    44     // For the contentAttributes()
       
    45     enum DrmAttribute
       
    46     {
       
    47        DrmIntAttributeBase=0,      // Base value for the  DRM integer attributes
       
    48        IsProtected   = DrmIntAttributeBase+0,
       
    49        IsForwardable = DrmIntAttributeBase+1,
       
    50        // For others DrmIntAttributeBase+N, see N from the caf/caftypes.h
       
    51        
       
    52        DrmStringAttributeBase = 100,  // Base value for the  DRM string attributes 
       
    53        Description = DrmStringAttributeBase+0,
       
    54        MimeType    = DrmStringAttributeBase+1
       
    55        // For others, DrmIntAttributeBase+N, see N from the caf/caftypes.h
       
    56     };
       
    57 
       
    58     // For the serviceStatus() function
       
    59     enum ServiceStatus
       
    60     {
       
    61         Unknown=0,  // Not known
       
    62         Enabled,    // Service enabled
       
    63         Disabled    // Service disabled, e.g. required config not OK,
       
    64     };
       
    65     
    44     XQApplicationManager();
    66     XQApplicationManager();
    45     virtual ~XQApplicationManager();
    67     virtual ~XQApplicationManager();
    46 
    68 
    47 public:
    69 public:
    48             
    70             
    66     QList<XQAiwInterfaceDescriptor> list(const XQSharableFile& file);
    88     QList<XQAiwInterfaceDescriptor> list(const XQSharableFile& file);
    67     XQAiwRequest* create( const XQSharableFile &file, bool embedded = true);
    89     XQAiwRequest* create( const XQSharableFile &file, bool embedded = true);
    68     XQAiwRequest* create( const XQSharableFile &file, const XQAiwInterfaceDescriptor& implementation, bool embedded = true);
    90     XQAiwRequest* create( const XQSharableFile &file, const XQAiwInterfaceDescriptor& implementation, bool embedded = true);
    69 
    91 
    70     int lastError() const;
    92     int lastError() const;
       
    93     bool isRunning(const XQAiwInterfaceDescriptor& implementation) const;
    71 
    94 
       
    95     bool getDrmAttributes(const QFile &file, const QList<int> &attributeNames, QVariantList &attributeValues);
       
    96     bool getDrmAttributes(const XQSharableFile &file, const QList<int> &attributeNames, QVariantList &attributeValues);
       
    97     
       
    98     ServiceStatus status(const XQAiwInterfaceDescriptor& implementation);
       
    99 
       
   100 signals:
       
   101     
    72 private:
   102 private:
    73     // Disable copy contructor
   103     // Disable copy contructor
    74     Q_DISABLE_COPY(XQApplicationManager)
   104     Q_DISABLE_COPY(XQApplicationManager)
    75     XQApplicationManagerPrivate *d;
   105     XQApplicationManagerPrivate *d;
    76 };
   106 };