Ticket #7052: Deskbar_ResourceSet_h_style_fix.diff

File Deskbar_ResourceSet_h_style_fix.diff, 2.9 KB (added by jscipione, 13 years ago)
  • src/apps/deskbar/ResourceSet.h

    diff --git a/src/apps/deskbar/ResourceSet.h b/src/apps/deskbar/ResourceSet.h
    index 5975304..a5a92b9 100644
    a b Except as contained in this notice, the name of Be Incorporated shall not be  
    2626used in advertising or otherwise to promote the sale, use or other dealings in
    2727this Software without prior written authorization from Be Incorporated.
    2828
    29 Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
    30 of Be Incorporated in the United States and other countries. Other brand product
    31 names are registered trademarks or trademarks of their respective holders.
     29Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered
     30trademarks of Be Incorporated in the United States and other countries. Other
     31brand product names are registered trademarks or trademarks of their respective
     32holders.
    3233All rights reserved.
    3334*/
    3435#ifndef _T_RESOURCE_SET_H
    public:  
    5758    TStringBlock(BDataIO* data);
    5859    TStringBlock(const void* block, size_t size);
    5960    virtual ~TStringBlock();
    60    
     61
    6162    const char* String(size_t index) const;
    6263
    6364private:
    6465    size_t PreIndex(char* strings, ssize_t len);
    65     void MakeIndex(const char* strings, ssize_t len,
    66         size_t indexLen, size_t* outIndex);
    67    
     66    void MakeIndex(const char* strings, ssize_t len, size_t indexLen,
     67        size_t* outIndex);
     68
    6869    size_t fNumEntries;
    6970    size_t* fIndex;
    7071    char* fStrings;
    public:  
    8081    status_t AddDirectory(const char* fullPath);
    8182    status_t AddEnvDirectory(const char* envPath,
    8283        const char* defaultValue = NULL);
    83    
    84     const void* FindResource(type_code type, int32 id,
    85         size_t* outSize);
    86     const void* FindResource(type_code type, const char* name,
    87         size_t* outSize);
    88    
     84
     85    const void* FindResource(type_code type, int32 id, size_t* outSize);
     86    const void* FindResource(type_code type, const char* name, size_t* outSize);
     87
    8988    const BBitmap* FindBitmap(type_code type, int32 id);
    9089    const BBitmap* FindBitmap(type_code type, const char* name);
    91    
     90
    9291    const TStringBlock* FindStringBlock(type_code type, int32 id);
    9392    const TStringBlock* FindStringBlock(type_code type, const char* name);
    94    
     93
    9594    const char* FindString(type_code type, int32 id, uint32 index);
    9695    const char* FindString(type_code type, const char* name, uint32 index);
    97    
     96
    9897private:
    9998    status_t ExpandString(BString* out, const char* in);
    10099    TypeList* FindTypeList(type_code type);
    101    
     100
    102101    TypeItem* FindItemID(type_code type, int32 id);
    103102    TypeItem* FindItemName(type_code type, const char* name);
    104    
     103
    105104    TypeItem* LoadResource(type_code type, int32 id, const char* name,
    106105        TypeList** inoutList = NULL);
    107    
     106
    108107    BBitmap* ReturnBitmapItem(type_code type, TypeItem* from);
    109108    TStringBlock* ReturnStringBlockItem(TypeItem* from);
    110    
     109
    111110    BLocker fLock;              // access control.
    112111    BList fResources;           // containing BResources objects.
    113112    BList fDirectories;         // containing BPath objects.