Classes encapsulation/abstraction changed in types 24/67324/1
authorKyungwook Tak <k.tak@samsung.com>
Tue, 26 Apr 2016 08:52:58 +0000 (17:52 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Tue, 26 Apr 2016 09:10:25 +0000 (18:10 +0900)
commit50c933d6753fb1893eef77b5a85c82b772602f88
tree83df08ee4b48cdf4b3d3927d664634ab01bde11a
parent034bc1d696a76bdbad3a6cccd9f7ce138e59d502
Classes encapsulation/abstraction changed in types

class Context
  - To abstract class (IContext)

class CsContext and WpContext
  - To unmovable, uncopyable. To copy shouldn't be done without
    any notice. The only case to be moved was for serialization, so
    it has been replaced to dynamic allocation not to be moved/copied

class Result
  - To abstract class (IResult)
  - To struct (break encapsulation). The reason of be class of it was
    for polymorphism (can get/set member variables with IResult). But
    when it goes into resource vector to be freed after appropriate
    pointer is given to client. So it's not needed to be polymorphistic.

Change-Id: I54fd7479d4008dbcb65a3cae51ecee8a436f19d6
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
35 files changed:
src/framework/CMakeLists.txt
src/framework/client/async-logic.cpp
src/framework/client/async-logic.h
src/framework/client/content-screening.cpp
src/framework/client/handle-ext.cpp
src/framework/client/handle-ext.h
src/framework/client/handle.cpp
src/framework/client/handle.h
src/framework/client/web-protection.cpp
src/framework/common/audit/console-sink.cpp
src/framework/common/audit/console-sink.h
src/framework/common/audit/dlog-sink.cpp
src/framework/common/audit/dlog-sink.h
src/framework/common/audit/log-sink.h
src/framework/common/audit/logger.cpp
src/framework/common/binary-queue.h
src/framework/common/connection.h
src/framework/common/cs-context.cpp
src/framework/common/cs-context.h
src/framework/common/cs-detected.cpp
src/framework/common/cs-detected.h
src/framework/common/icontext.cpp [moved from src/framework/common/types.cpp with 51% similarity]
src/framework/common/icontext.h [new file with mode: 0644]
src/framework/common/iresult.h [moved from src/framework/common/raw-buffer.h with 67% similarity]
src/framework/common/serialization.h
src/framework/common/socket.h
src/framework/common/types.h
src/framework/common/wp-context.cpp
src/framework/common/wp-context.h
src/framework/common/wp-result.cpp
src/framework/common/wp-result.h
src/framework/service/logic.cpp
src/framework/service/logic.h
src/framework/ui/popup/logic.cpp
src/framework/ui/popup/logic.h