homescreensrv_plat/activity_framework_api/afactivities_global.h
changeset 127 7b66bc3c6dc9
parent 125 26079c1bb561
equal deleted inserted replaced
126:efda7c0771b9 127:7b66bc3c6dc9
    17 
    17 
    18 #ifndef AFACTIVITIES_GLOBAL_H
    18 #ifndef AFACTIVITIES_GLOBAL_H
    19 #define AFACTIVITIES_GLOBAL_H
    19 #define AFACTIVITIES_GLOBAL_H
    20 
    20 
    21 #include <qglobal.h>
    21 #include <qglobal.h>
    22 #include <qmetatype.h>
    22 #include <QMetaType>
    23 
    23 
    24 #ifdef AFACTIVITIES_LIB
    24 #ifdef AFACTIVITIES_LIB
    25     #define AFACTIVITIES_EXPORT Q_DECL_EXPORT
    25     #define AFACTIVITIES_EXPORT Q_DECL_EXPORT
    26 #else
    26 #else
    27     #ifdef AFACTIVITIES_TEST
    27     #ifdef AFACTIVITIES_TEST
    40     
    40     
    41     const char KActivityScheme[] = "appto";
    41     const char KActivityScheme[] = "appto";
    42 
    42 
    43     const char KActivityUriNameKey[] = "activityname";
    43     const char KActivityUriNameKey[] = "activityname";
    44     const char KActivityUriBackgroundKey[] = "activityinbackground";
    44     const char KActivityUriBackgroundKey[] = "activityinbackground";
       
    45     
       
    46     //to ensure activation reason can be used in queued connections
       
    47     static const int metatypeNumber = qRegisterMetaType<Af::ActivationReason>("Af::ActivationReason");
    45 }
    48 }
    46 
    49 
    47 Q_DECLARE_METATYPE( Af::ActivationReason )
    50 Q_DECLARE_METATYPE( Af::ActivationReason )
    48 
    51 
    49 #endif // AFACTIVITIES_GLOBAL_H
    52 #endif // AFACTIVITIES_GLOBAL_H