1 // Copyright 2021 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXCRT_FX_FOLDER_H_ 8 #define CORE_FXCRT_FX_FOLDER_H_ 9 10 #include <memory> 11 12 #include "core/fxcrt/bytestring.h" 13 14 class FX_Folder { 15 public: 16 static std::unique_ptr<FX_Folder> OpenFolder(const ByteString& path); 17 18 virtual ~FX_Folder() = default; 19 20 // `filename` and `folder` are required out-parameters. 21 virtual bool GetNextFile(ByteString* filename, bool* bFolder) = 0; 22 }; 23 24 #endif // CORE_FXCRT_FX_FOLDER_H_ 25