photosgallery/controllers/imageviewer/inc/glximageviewermanager.h
changeset 4 57d388cc48c1
parent 1 9ba538e329bd
child 12 ce1c7ad1f18b
equal deleted inserted replaced
3:9a9c174934f5 4:57d388cc48c1
    44      * Singleton constructor.
    44      * Singleton constructor.
    45      */
    45      */
    46     static CGlxImageViewerManager* InstanceL();
    46     static CGlxImageViewerManager* InstanceL();
    47     
    47     
    48 public:
    48 public:
    49     IMPORT_C inline HBufC* ImageUri( void );
    49     IMPORT_C HBufC* ImageUri();
    50     IMPORT_C inline RFile64& ImageFileHandle() const;
    50     IMPORT_C RFile64& ImageFileHandle();
    51     IMPORT_C inline TBool IsPrivate();
    51     IMPORT_C TBool IsPrivate();
    52     IMPORT_C inline void IncrementRefCount();
       
    53     IMPORT_C void DeleteInstance( void );
    52     IMPORT_C void DeleteInstance( void );
    54     IMPORT_C void SetImageUriL(const TDesC& aFileName);
    53     IMPORT_C void SetImageUriL(const TDesC& aFileName);
    55     IMPORT_C void SetImageFileHandleL(const RFile& aFileHandle);
    54     IMPORT_C void SetImageFileHandleL(const RFile& aFileHandle);
    56     IMPORT_C void Reset();
    55     IMPORT_C void Reset();
    57 
    56 
    74 
    73 
    75     /**
    74     /**
    76      * EPOC default constructor for performing 2nd stage construction
    75      * EPOC default constructor for performing 2nd stage construction
    77      */
    76      */
    78     void ConstructL();
    77     void ConstructL();
    79     
       
    80 
    78 
    81 private:
    79 private:
    82 	//need to declare as it is initialised
    80     /// image file uri in case of Photos starting as Image viewer 
    83     TInt iRefCount; /// Reference count
    81     HBufC* iImageUri;
    84     HBufC* iImageUri; /// image file uri in case of Photos starting as Image viewer 
    82 
    85     RFile64* iFile;  /// Handle to image file which will be shown in Image viewer
    83     /// Handle to image file which will be shown in Image viewer
    86     TBool iIsPrivate; /// Flag that stores if the image file is in a private folder. ETrue means the image is private, else EFalse 
    84     RFile64* iFile;
    87     
    85 
       
    86     /// Flag that stores if the image file is in a private folder. 
       
    87     /// ETrue means the image is private, else EFalse 
       
    88     TBool iIsPrivate;
    88     };
    89     };
    89 
    90 
    90 #include "glximageviewermanager.inl"
       
    91 
       
    92 #endif // GLXIMAGEVIEWERMANAGER_H
    91 #endif // GLXIMAGEVIEWERMANAGER_H